[NCCL] Expose new ncclConfig_t flags in 2.27 (#155379)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155379
Approved by: https://github.com/Skylion007
This commit is contained in:
Eddie Yan
2025-06-11 18:26:55 +00:00
committed by PyTorch MergeBot
parent 247f83e0a4
commit 4d9d884c3f
2 changed files with 21 additions and 0 deletions

View File

@ -75,6 +75,18 @@ static_assert(
#define NCCL_SUPPORTS_FP8
#endif
#if NCCL_VERSION_CODE >= NCCL_VERSION(2, 27, 0)
#define NCCL_HAS_COLLNET
#endif
#if NCCL_VERSION_CODE >= NCCL_VERSION(2, 27, 0)
#define NCCL_HAS_CTA_POLICY
#endif
#if NCCL_VERSION_CODE >= NCCL_VERSION(2, 27, 0)
#define NCCL_HAS_NVLS_CTAS
#endif
// Macro to throw on a non-successful NCCL return value.
#define C10D_NCCL_CHECK(cmd, failureReason) \
do { \