From c1e23615b5b7e6ad2601474bf0064b8a9b27ac74 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 13 Aug 2026 10:35:11 +0000 Subject: [PATCH] fix: remove CUB_WRAPPED_NAMESPACE and _CCCL_COMPILER_GCC from build flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CUB_WRAPPED_NAMESPACE=cccl_preload wraps cub into cccl_preload::cub but cccl_allocator_preload.cu uses bare cub:: — compilation fails. _CCCL_COMPILER_GCC=1 conflicts with CCCL auto-detection (redefined warning). Drop both. CUB_DISABLE_NAMESPACE_MAGIC alone is sufficient. --- qwen3_6_scripts/cccl_preload/build_cccl_preload.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qwen3_6_scripts/cccl_preload/build_cccl_preload.sh b/qwen3_6_scripts/cccl_preload/build_cccl_preload.sh index b97fde7c..30149448 100755 --- a/qwen3_6_scripts/cccl_preload/build_cccl_preload.sh +++ b/qwen3_6_scripts/cccl_preload/build_cccl_preload.sh @@ -72,11 +72,9 @@ COMMON_FLAGS=( # Suppress CCCL warnings that don't affect correctness -Wno-unused-function -Wno-unknown-pragmas - # CUB needs these for non-NVCC compilers - -D_CCCL_COMPILER_GCC=1 + # CUB needs this for non-NVCC compilers -D__CUDA_ARCH_LIST__=700 -DCUB_DISABLE_NAMESPACE_MAGIC - -DCUB_WRAPPED_NAMESPACE=cccl_preload ) if [[ "${CXX}" == *clang++* ]]; then