I implemented a small library in directory /someDir/mylib.so, and I’d like to link it to my CUDA programs by:
nvcc -L/someDir -L/usr/local/cuda/lib64 -lmylib cuda_prog.cu -o cuda_prog
I got the following error:
/usr/bin/ld: tmp/cuda_prog: hidden symbol `cudaEventSynchronize’ in /usr/local/cuda/lib64/libcudart_static.a(libcudart_static.a.o) is referenced by DSO
My understanding is that the cuda function symbols in the CUDA library are not visible. But is there any way to get around this?