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:
@@ -72,11 +72,9 @@ COMMON_FLAGS=(
|
|||||||
# Suppress CCCL warnings that don't affect correctness
|
# Suppress CCCL warnings that don't affect correctness
|
||||||
-Wno-unused-function
|
-Wno-unused-function
|
||||||
-Wno-unknown-pragmas
|
-Wno-unknown-pragmas
|
||||||
# CUB needs these for non-NVCC compilers
|
# CUB needs this for non-NVCC compilers
|
||||||
-D_CCCL_COMPILER_GCC=1
|
|
||||||
-D__CUDA_ARCH_LIST__=700
|
-D__CUDA_ARCH_LIST__=700
|
||||||
-DCUB_DISABLE_NAMESPACE_MAGIC
|
-DCUB_DISABLE_NAMESPACE_MAGIC
|
||||||
-DCUB_WRAPPED_NAMESPACE=cccl_preload
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ "${CXX}" == *clang++* ]]; then
|
if [[ "${CXX}" == *clang++* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user