diff --git a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp index 98a272468a84..072128c7d311 100644 --- a/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp +++ b/torch/csrc/distributed/c10d/symm_mem/CUDASymmetricMemoryUtils.cpp @@ -72,7 +72,7 @@ IpcChannel::~IpcChannel() { } void IpcChannel::send_fd(int dst_pid, int fd) { - // Because file descriptors are process-local kernel objects, and we can’t + // Because file descriptors are process-local kernel objects, and we can't // pass them via normal socket payloads (like write() or send()). Unix domain // sockets provide a mechanism to pass actual FDs via sendmsg()/recvmsg(). // Define destination socket address @@ -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;