From ada878effa08a66235084ee65db9de8eb0e13d8f Mon Sep 17 00:00:00 2001 From: albmalamd Date: Tue, 7 Jul 2026 21:54:45 +0200 Subject: [PATCH] =?UTF-8?q?[release/2.12]=20[ROCm]=20Fixed=20memory=20erro?= =?UTF-8?q?rs=20in=20SymmetricMemory=20caused=20by=20repeated=20call?= =?UTF-8?q?=E2=80=A6=20(#3403)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a cherry-pick of https://github.com/pytorch/pytorch/pull/188673 Removing a repeated call of hipMemMap which is causing the errors in SymmetricMemory. --- .../distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp index 98a272468a84d..5c728e0ee0658 100644 --- a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp +++ b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp @@ -251,12 +251,6 @@ void map_block( 0, reinterpret_cast(handle), 0ULL)); - C10_CUDA_CHECK(hipMemMap( - *ptr, - size, - 0, - reinterpret_cast(handle), - 0ULL)); hipMemAccessDesc desc; desc.location.type = hipMemLocationTypeDevice;