Hello,
I have done some Cuda programming in Windows. Now that I have to run it some Linux cluster, I started building Cuda environment on my PC in Linux. I have a GTX480.
/usr/bin/nvidia-settings says I have driver version 270.41.06
The OS I have
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
The gcc version I have is gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
I installed both toolkit and sdk, latest ones (maybe I should have kept to v4.0)
cudatoolkit_4.1.28_linux_64_ubuntu11.04.run
gpucomputingsdk_4.1.28_linux.run
I changed the environment variables, as below
LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:
PATH=/home/elan/.bashish/launcher:/usr/local/share/bashish/lib:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
But when I tried to run make file in SDK/C, I got the error
Cannot find -lcuda
The best help I got was when browsing the forum threads, the one below, that had an exact description
So I edited common.mk in SDK/C/common, to include nvidia-current path in all the if-else paths of # Libs section.
Then, I could get at least one project built, namely deviceQuery
- No other project is built. I get the error
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/recursiveGaussian] Error 1
Unfortunately, searching for this error does not give any hits.
- Running deviceQuery doesn’t work either
[deviceQuery] starting…
./deviceQuery Starting…
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
→ CUDA driver version is insufficient for CUDA runtime version
[deviceQuery] test results…
FAILED
exiting in 3 seconds: 3…2…1…done!
Can anybody please infer where the error could be? I have spent two days on this, trying installing new nVidia drivers in vain (in spite of the advice in the quote), editing the frightening xorg.conf etc. Good, I have learnt some Linux.
Thank you,
Elan.