fix: remove CUB_WRAPPED_NAMESPACE and _CCCL_COMPILER_GCC from build flags

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.
This commit is contained in:
Claude
2026-08-13 10:35:11 +00:00
parent 32325f9624
commit c1e23615b5

View File

@@ -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