cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

undefined reference to `cudaSignalExternalSemaphoresAsync_v2'

Open fabrizioschiano opened this issue 4 years ago • 1 comments

I am trying to build the /NVIDIA_CUDA-11.4_Samples and I have the following error.

>>> GCC Version is greater or equal to 5.1.0 <<<
/usr/local/cuda-11.4/bin/nvcc -ccbin g++   -m64      -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -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_86,code=compute_86 -o simpleVulkanMMAP helper_multiprocess.o MonteCarloPi.o VulkanBaseApp.o main.o  -L/usr/lib/x86_64-linux-gnu `pkg-config --static --libs glfw3` -lvulkan -L/usr/local/cuda-11.4/lib64/stubs -lcuda
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/bin/ld: main.o: in function `VulkanCudaPi::drawFrame()':
main.cpp:(.text._ZN12VulkanCudaPi9drawFrameEv[_ZN12VulkanCudaPi9drawFrameEv]+0x178): undefined reference to `cudaWaitExternalSemaphoresAsync_v2'
/usr/bin/ld: main.cpp:(.text._ZN12VulkanCudaPi9drawFrameEv[_ZN12VulkanCudaPi9drawFrameEv]+0x1f6): undefined reference to `cudaSignalExternalSemaphoresAsync_v2'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:452: simpleVulkanMMAP] Error 1
make[1]: Leaving directory '/home/fabrizioschiano/NVIDIA_CUDA-11.4_Samples/2_Graphics/simpleVulkanMMAP'
make: *** [Makefile:51: 2_Graphics/simpleVulkanMMAP/Makefile.ph_build] Error 2

I could not find yet a solution, I will update this issue hopefully when I find it.

In the meantime, I would be glad, if you could help me with some pointers towards the solution of this problem.

fabrizioschiano avatar Oct 07 '21 10:10 fabrizioschiano

Hi, did you find a solution to this problem?

edbeeching avatar Sep 29 '22 11:09 edbeeching