Skip to content

Commit 5743a0c

Browse files
authored
[release/2.5] Update CUDAPluggableAllocator.h
Altering the flag to use the correct streamType for CUDAPluggableAllocator. This is impacting Distributed Fused Adam in Rocm/APEX. Apex Commit : ROCm/apex#188
1 parent 0119c20 commit 5743a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/cuda/CUDAPluggableAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct TORCH_CUDA_CPP_API CUDAPluggableAllocatorDeleterContext {
3737
cudaStream_t stream_;
3838
};
3939

40-
#if defined(TORCH_HIP_VERSION)
40+
#if defined(USE_ROCM)
4141
using streamType = c10::hip::HIPStream;
4242
#else
4343
using streamType = c10::cuda::CUDAStream;

0 commit comments

Comments
 (0)