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
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)
I changed the environment variables, as below
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: *** […/…/bin/linux/release/recursiveGaussian] Error 1
Unfortunately, searching for this error does not give any hits.
- Running deviceQuery doesn’t work either
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
[deviceQuery] test results…
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.