Skip to content

Commit 08bd5c9

Browse files
[ROCm] Fixed memory errors in SymmetricMemory caused by repeated call…
Cherry-pick of #3403 Co-authored-by: albmalamd <albert.malewski@amd.com>
1 parent 6851942 commit 08bd5c9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,6 @@ void map_block(
251251
0,
252252
reinterpret_cast<hipMemGenericAllocationHandle_t>(handle),
253253
0ULL));
254-
C10_CUDA_CHECK(hipMemMap(
255-
*ptr,
256-
size,
257-
0,
258-
reinterpret_cast<hipMemGenericAllocationHandle_t>(handle),
259-
0ULL));
260254

261255
hipMemAccessDesc desc;
262256
desc.location.type = hipMemLocationTypeDevice;

0 commit comments

Comments
 (0)