Skip to content

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?

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.

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

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

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?

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

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?

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