Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onesided collective perftest #1004

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pangjuan8848
Copy link

What

Add onesided collective in perf to test ucp alltoall_onesided alg

Why ?

Direct testing will appear the error of TL_UCP ERROR global work buffer not provided nor associated with team

How ?

When test onesided alltoall ,add -J

@swx-jenkins3
Copy link

Can one of the admins verify this patch?

@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
ucc_pt_cuda_init();
ucc_pt_rocm_init();
try {
comm = new ucc_pt_comm(pt_config.comm);
comm = new ucc_pt_comm(pt_config.comm,pt_config.bench);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing

Copy link
Collaborator

@wfaderhold21 wfaderhold21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Minor comments.

@@ -12,7 +12,7 @@

ucc_pt_coll_alltoall::ucc_pt_coll_alltoall(ucc_datatype_t dt,
ucc_memory_type mt, bool is_inplace,
bool is_persistent,
bool is_persistent,bool is_onesided,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing

@@ -38,6 +38,10 @@ ucc_pt_coll_alltoall::ucc_pt_coll_alltoall(ucc_datatype_t dt,
coll_args.mask |= UCC_COLL_ARGS_FIELD_FLAGS;
coll_args.flags |= UCC_COLL_ARGS_FLAG_PERSISTENT;
}
if(is_onesided){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing / formatting

@@ -60,6 +64,11 @@ ucc_status_t ucc_pt_coll_alltoall::init_args(size_t single_rank_count,
free_dst, st);
args.src.info.buffer = src_header->addr;
}
if(UCC_IS_ONESIDED(args)){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing

if(UCC_IS_ONESIDED(args)){
args.src.info.buffer = comm->get_global_buffer(0);
args.dst.info.buffer = comm->get_global_buffer(1);
args.global_work_buffer = comm->get_global_buffer(2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment?

@@ -60,6 +64,11 @@ ucc_status_t ucc_pt_coll_alltoall::init_args(size_t single_rank_count,
free_dst, st);
args.src.info.buffer = src_header->addr;
}
if(UCC_IS_ONESIDED(args)){
args.src.info.buffer = comm->get_global_buffer(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of 0, 1, or 2, define a name for them like MEM_SEND_SEGMENT ? Then can use like:

args.src.info.buffer = comm->get_global_buffer(MEM_SEND_SEGMENT);

{
onesided_buffers[i] = NULL;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

@@ -165,6 +195,10 @@ ucc_status_t ucc_pt_comm::init()
team_params.oob = bootstrap->get_team_oob();
team_params.ep = bootstrap->get_rank();
team_params.ep_range = UCC_COLLECTIVE_EP_RANGE_CONTIG;
if(bcfg.onesided){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing

void set_gpu_device();
public:
ucc_pt_comm(ucc_pt_comm_config config);
ucc_pt_comm(ucc_pt_comm_config config,ucc_pt_benchmark_config ben_config);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing?

throw std::out_of_range("Index out range");
}
return onesided_buffers[index];

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line?

@@ -91,7 +92,7 @@ ucc_status_t ucc_pt_config::process_args(int argc, char *argv[])
int c;
ucc_status_t st;

while ((c = getopt(argc, argv, "c:b:e:d:m:n:w:o:N:r:S:iphFT")) != -1) {
while ((c = getopt(argc, argv, "c:b:e:d:m:n:w:o:N:r:S:iphFTJ")) != -1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use O to be for onesided?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants