From 113d859d13f08ca9533e1ba5a0d4b645c26028ee Mon Sep 17 00:00:00 2001 From: Binyang Li Date: Fri, 8 May 2026 03:00:53 +0000 Subject: [PATCH] fix --- src/ext/collectives/allreduce/allreduce_nvls_zero_copy.cu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ext/collectives/allreduce/allreduce_nvls_zero_copy.cu b/src/ext/collectives/allreduce/allreduce_nvls_zero_copy.cu index 99146779..ef6d216c 100644 --- a/src/ext/collectives/allreduce/allreduce_nvls_zero_copy.cu +++ b/src/ext/collectives/allreduce/allreduce_nvls_zero_copy.cu @@ -83,7 +83,8 @@ struct NvlsAdapter { // fp8_e4m3b15 is a software-only type with no hardware NVLS support. return cudaErrorNotSupported; } else -#if (!defined(__CUDA_ARCH_SPECIFIC__) && !defined(__CUDA_ARCH_FAMILY_SPECIFIC__)) || (__CUDA_ARCH__ < 1000) +#if defined(__CUDA_ARCH__) && \ + ((!defined(__CUDA_ARCH_SPECIFIC__) && !defined(__CUDA_ARCH_FAMILY_SPECIFIC__)) || (__CUDA_ARCH__ < 1000)) if constexpr (std::is_same_v || std::is_same_v) { return cudaErrorNotSupported; } else