/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?
I actually read that post from stackoverflow before, but it didn’t help me solve the problem. I’m trying to see whether somebody knows how to circumvent this problem.
Sorry that I didn’t ask the question clearly. Actually, I tried to redefine some cuda library functions, such as cudaMalloc, by using dlsym. For example, I did: