pytorch/torch/csrc/distributed/c10d/cuda/utils.hpp
Ke Wen f211818bc0 [c10d] Restrict use condition of NCCL mem pool (#147764)
Add check to see if CUDA driver support multicast, as does in Symmetric Memory.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/147764
Approved by: https://github.com/syed-ahmed, https://github.com/yifuwang
2025-02-26 03:40:00 +00:00

11 lines
230 B
C++

#pragma once
// This file contains utility functions common for CUDA, which can be used by
// ProcessGroupNCCL or SymmetricMemory.
namespace c10d::cuda {
bool deviceSupportsMulticast(int device_idx);
} // namespace c10d::cuda