Skip to content

Commit

Permalink
Undo unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Sarkauskas committed Jul 9, 2024
1 parent 0a72a73 commit 4e61412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/core/ucc_coll.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ UCC_CORE_PROFILE_FUNC(ucc_status_t, ucc_collective_init,
ucc_ee_type_t coll_ee_type;
size_t coll_size;

printf("nick in ucc_collective_init: dst buffer=%p\n", coll_args->dst.info.buffer);

if (ucc_unlikely(team->state != UCC_TEAM_ACTIVE)) {
ucc_error("team %p is used before team create is completed", team);
return UCC_ERR_INVALID_PARAM;
Expand Down Expand Up @@ -250,11 +248,10 @@ UCC_CORE_PROFILE_FUNC(ucc_status_t, ucc_collective_init,
goto free_scratch;
}

coll_mem_type = ucc_coll_args_mem_type(&op_args.args, team->rank);

task->flags |= UCC_COLL_TASK_FLAG_TOP_LEVEL;
if (task->flags & UCC_COLL_TASK_FLAG_EXECUTOR) {
task->flags |= UCC_COLL_TASK_FLAG_EXECUTOR_STOP;
coll_mem_type = ucc_coll_args_mem_type(&op_args.args, team->rank);
switch(coll_mem_type) {
case UCC_MEMORY_TYPE_CUDA:
case UCC_MEMORY_TYPE_CUDA_MANAGED:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ucc_coll_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ ucc_memory_type_t ucc_coll_args_mem_type(const ucc_coll_args_t *args,
return UCC_MEMORY_TYPE_NOT_APPLY;
case UCC_COLL_TYPE_BCAST:
return args->src.info.mem_type;
case UCC_COLL_TYPE_ALLREDUCE:
case UCC_COLL_TYPE_ALLTOALL:
case UCC_COLL_TYPE_ALLREDUCE:
case UCC_COLL_TYPE_ALLGATHER:
case UCC_COLL_TYPE_REDUCE_SCATTER:
return args->dst.info.mem_type;
Expand Down

0 comments on commit 4e61412

Please sign in to comment.