Open brynblack opened 6 months ago
I have the same error in RHEL94 under an ARM64 with GH200:
[archambaf@pm5-nod68 cdpAdvancedQuicksort]$ make
>>> GCC Version is greater or equal to 5.0.0 <<<
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common -m64 -dc -maxrregcount=64 --std=c++14 --threads 0 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 -o cdpAdvancedQuicksort.o -c cdpAdvancedQuicksort.cu
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common -m64 -dc -maxrregcount=64 --std=c++14 --threads 0 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 -o cdpBitonicSort.o -c cdpBitonicSort.cu
/usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 -o cdpAdvancedQuicksort cdpAdvancedQuicksort.o cdpBitonicSort.o -lcudadevrt
nvlink error : Undefined reference to '__cudaCDP2GetLastError' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2PeekAtLastError' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2GetErrorString' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2StreamCreateWithFlags' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2MemcpyAsync' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2GetParameterBufferV2' in 'cdpAdvancedQuicksort.o' (target: sm_87)
nvlink error : Undefined reference to '__cudaCDP2LaunchDeviceV2' in 'cdpAdvancedQuicksort.o' (target: sm_87)
make: *** [Makefile:383: cdpAdvancedQuicksort] Error 25
Details
When trying to compile
cuda-samples
undernixos-unstable
, it will always error with undefined references to CDP related libraries and functions.flake.nix
Error