Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinhaoc committed Jan 26, 2024
1 parent 01c9d4c commit a31f8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/runtime/optimizer_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ __host__ void AdamOptimizer::nccl_unified_update_task_gpu(

hipStream_t stream;
checkCUDA(get_legion_stream(&stream));
assert(op->reservedWorkSpaceSize < meta->handle.workSpaceSize);
// assert(op->reservedWorkSpaceSize < meta->handle.workSpaceSize);

void *workSpace_ptr = meta->handle.workSpace;

Expand All @@ -275,7 +275,7 @@ __host__ void AdamOptimizer::nccl_unified_update_task_gpu(
// do allreduce once
checkNCCL(ncclAllReduce(meta->handle.workSpace,
(float *)meta->handle.workSpace,
op->reservedWorkSpaceSize / sizeof(float),
meta->handle.workSpaceSize,
ncclFloat,
ncclSum,
meta->handle.ncclComm,
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/optimizer_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ __host__ void AdamOptimizer::nccl_unified_update_task_gpu(

cudaStream_t stream;
checkCUDA(get_legion_stream(&stream));
assert(op->reservedWorkSpaceSize < meta->handle.workSpaceSize);
// assert(op->reservedWorkSpaceSize < meta->handle.workSpaceSize);

void *workSpace_ptr = meta->handle.workSpace;

Expand All @@ -245,7 +245,7 @@ __host__ void AdamOptimizer::nccl_unified_update_task_gpu(
// do allreduce once
checkNCCL(ncclAllReduce(meta->handle.workSpace,
(float *)meta->handle.workSpace,
op->reservedWorkSpaceSize / sizeof(float),
meta->handle.workSpaceSize,
ncclFloat,
ncclSum,
meta->handle.ncclComm,
Expand Down

0 comments on commit a31f8e9

Please sign in to comment.