Hi,
I am new to cuda and while I was trying to compile a program. I got the following:
/usr/bin/ld: cannot find -lcuda
If someone could help me, it would be greatly appreciated.
Hi,
I am new to cuda and while I was trying to compile a program. I got the following:
/usr/bin/ld: cannot find -lcuda
If someone could help me, it would be greatly appreciated.
Have you installed the driver?
Yes, I have installed the drivers. I can execute a hello world and others cuda programs, but when I am trying to execute cudamemtest, I get the specified error.
Thanks,
ld is the linker, you should get this error at compile time not at execution time.
Which OS?
The file libcuda.so should be either in /usr/lib or /usr/lib64. Try to add -L/usr/lib (or lib64) to your compile command.