-
Notifications
You must be signed in to change notification settings - Fork 117
onesided collective perftest #1004
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
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
ucc_pt_rocm_init(); | ||
try { | ||
comm = new ucc_pt_comm(pt_config.comm); | ||
comm = new ucc_pt_comm(pt_config.comm,pt_config.bench); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacing
There was a problem hiding this 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.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacing
coll_args.mask |= UCC_COLL_ARGS_FIELD_FLAGS; | ||
coll_args.flags |= UCC_COLL_ARGS_FLAG_PERSISTENT; | ||
} | ||
if(is_onesided){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacing / formatting
free_dst, st); | ||
args.src.info.buffer = src_header->addr; | ||
} | ||
if(UCC_IS_ONESIDED(args)){ |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment?
args.src.info.buffer = src_header->addr; | ||
} | ||
if(UCC_IS_ONESIDED(args)){ | ||
args.src.info.buffer = comm->get_global_buffer(0); |
There was a problem hiding this comment.
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; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
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){ |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line?
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) { |
There was a problem hiding this comment.
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?
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