AutoDMP icon indicating copy to clipboard operation
AutoDMP copied to clipboard

CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined

Open 854768750 opened this issue 1 year ago • 1 comments

I have this error with make command

[ 69%] Building NVCC (Device) object dreamplace/ops/pin_pos/CMakeFiles/pin_pos_cuda_segment_cuda_tmp.dir/src/pin_pos_cuda_segment_cuda_tmp_generated_pin_pos_cuda_segment_kernel.cu.o
.....
cuda12-3-0/include/cub/util_namespace.cuh:46:2: error: #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
 #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
  ^~~~~

Software versions:

CUDA version: Cuda compilation tools, release 12.3, V12.3.52 Build cuda_12.3.r12.3/compiler.33281558_0

CC: gcc (GCC) 7.5.0 CXX: c++ (GCC) 7.5.0

GPUs compute compatibility: 7.5 GPU Driver Version: 530.41.03

Can you give some idea how to solve this? Which versions of software works? I also tried CUDA 10.1 but still not work. I also tried cmake arguments: -DBUILD_WITH_CUDA_CUB=ON -DUSE_CUDA=ON and not work. Thank you.

854768750 avatar Nov 08 '23 22:11 854768750

Switched to CUDA11.4.0 and could proceed compiling. Reason still unknown.

854768750 avatar Nov 08 '23 23:11 854768750