From 899e864cbdc3a9b2e4c373efe95d719fb17126e3 Mon Sep 17 00:00:00 2001 From: albmalamd Date: Tue, 7 Jul 2026 21:54:45 +0200 Subject: [PATCH] Cherry-picked commit with merge conflict --- .../distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp index 51a5d5e7244b1..d873d9bedd2e0 100644 --- a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp +++ b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp @@ -251,12 +251,15 @@ void map_block( 0, reinterpret_cast(handle), 0ULL)); +<<<<<<< HEAD C10_HIP_CHECK(hipMemMap( *ptr, size, 0, reinterpret_cast(handle), 0ULL)); +======= +>>>>>>> 7a68a172a90 ([release/2.12] [ROCm] Fixed memory errors in SymmetricMemory caused by repeated call… (#3403)) hipMemAccessDesc desc; desc.location.type = hipMemLocationTypeDevice;