On 24 May 2017 at 00:36, Ramesh Babu mgrameshbabu2013@gmail.com wrote:
Now I am getting confusion, really which version of cuda I have?. Because when I give these command "cudadetect" nvcc -V, and cat /usr/local/cuda/version.txt I am getting different answers.
rb@rameshbabu:~$ cudadetect Detecting CUDA... There is 1 device supporting CUDA:
Device 0: "GeForce GT 610" CUDA Driver Version: 8.0 CUDA Runtime Version: 5.0 CUDA Capability Major revision number: 2 CUDA Capability Minor revision number: 1 Total amount of global memory: 2080440320 bytes Number of multiprocessors: 1 Number of cores: 32 Total amount of constant memory: 65536 bytes Total amount of shared memory per block: 49152 bytes Total number of registers available per block: 32768 Warp size: 32 Maximum number of threads per block: 1024 Maximum sizes of each dimension of a block: 1024 x 1024 x 64 Maximum sizes of each dimension of a grid: 65535 x 65535 x 65535 Maximum memory pitch: 2147483647 bytes Texture alignment: 512 bytes Clock rate: 1.62 GHz Concurrent copy and execution: Yes Run time limit on kernels: Yes Integrated: No Support host page-locked memory mapping: Yes Compute mode: Default (multiple host threads can use this device simultaneously)
cudadetect is installed by freesurfer. For me, the output starts: [rge21@cudastation gpu_utils]$ ./cudadetect Detecting CUDA... There is 1 device supporting CUDA:
Device 0: "Quadro K1200" CUDA Driver Version: 8.0 CUDA Runtime Version: 8.0 CUDA Capability Major revision number: 5 CUDA Capability Minor revision number: 0
rb@rameshbabu:~$ cat /usr/local/cuda/version.txt cat: /usr/local/cuda/version.txt: No such file or directory
rb@rameshbabu:~$ nvcc -V The program 'nvcc' is currently not installed. You can install it by typing: sudo apt install nvidia-cuda-toolkit
Did you install the CUDA SDK? The response from your OS implies you didn't (likewise the absence of /usr/local/cuda). However, if you did, then check your $PATH.
From my machine:
[rge21@cudastation gpu_utils]$ which nvcc /usr/local/cuda-8.0/bin/nvcc [rge21@cudastation gpu_utils]$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2016 NVIDIA Corporation Built on Tue_Jan_10_13:22:03_CST_2017 Cuda compilation tools, release 8.0, V8.0.61
The first command reports that I have CUDA Driver Version: 8.0 and CUDA Runtime Version: 5.0, but why I am not getting any report for other two commands.
Did you install CUDA yourself? What is the output from "locate libcudart" ?
Regards,
Richard