Dear Richard,

There is some response for cudadetect command which I have pated in earlier mail. But no ./cudadetect file.

rb@rameshbabu:~$ ./cudadetect
bash: ./cudadetect: No such file or directory

I have nvcc file in /usr/local/cuda/bin but still not located.

rb@rameshbabu:~$ which nvcc  (no response)
rb@rameshbabu:~$ ll /usr/local/cuda/bin/
total 31836
drwxr-xr-x  3 root root    4096 May 19 19:56 ./
drwxr-xr-x 16 root root    4096 May 19 19:56 ../
-rwxr-xr-x  1 root root   63288 May 19 19:56 bin2c*
lrwxrwxrwx  1 root root       4 May 19 19:56 computeprof -> nvvp*
drwxr-xr-x  2 root root    4096 May 19 19:56 crt/
-rwxr-xr-x  1 root root 3240648 May 19 19:56 cudafe*
-rwxr-xr-x  1 root root 2904184 May 19 19:56 cudafe++*
-rwxr-xr-x  1 root root 5698534 May 19 19:56 cuda-gdb*
-rwxr-xr-x  1 root root  170664 May 19 19:56 cuda-memcheck*
-rwxr-xr-x  1 root root 6460832 May 19 19:56 cuobjdump*
-rwxr-xr-x  1 root root  164992 May 19 19:56 fatbin*
-rwxr-xr-x  1 root root  125584 May 19 19:56 fatbinary*
-rwxr-xr-x  1 root root   58680 May 19 19:56 filehash*
-rwxr-xr-x  1 root root     210 May 19 19:56 nsight*
-rwxr-xr-x  1 root root  160576 May 19 19:56 nvcc*
-rw-r--r--  1 root root     306 May 19 19:56 nvcc.profile

-rwxr-xr-x  1 root root 5729960 May 19 19:56 nvlink*
-rwxr-xr-x  1 root root 2166448 May 19 19:56 nvprof*
-rwxr-xr-x  1 root root     206 May 19 19:56 nvvp*
-rwxr-xr-x  1 root root 5600776 May 19 19:56 ptxas*


rb@rameshbabu:~$ nvcc --version
The program 'nvcc' is currently not installed. You can install it by typing:
sudo apt install nvidia-cuda-toolkit


rb@rameshbabu:~$ locate libcudart
/usr/local/MATLAB/R2017a/bin/glnxa64/libcudart.so.8.0
/usr/local/MATLAB/R2017a/bin/glnxa64/libcudart.so.8.0.44
/usr/local/cuda-5.0/lib/libcudart.so
/usr/local/cuda-5.0/lib/libcudart.so.5.0
/usr/local/cuda-5.0/lib/libcudart.so.5.0.35
/usr/local/cuda-5.0/lib64/libcudart.so
/usr/local/cuda-5.0/lib64/libcudart.so.5.0
/usr/local/cuda-5.0/lib64/libcudart.so.5.0.35
/usr/local/freesurfer/MCRv80/bin/glnxa64/libcudart.so.4
/usr/local/freesurfer/MCRv80/bin/glnxa64/libcudart.so.4.2.9

As far as I know, freesurfer supports cuda-5 and it requires libcudart.so-5.0. That's why I have installed cuda-5. How did you enable freesurfer with cuda-8?

Thanks
Ramesh


On Thu, May 25, 2017 at 5:42 AM, R Edgar <freesurfer.rge@gmail.com> wrote:
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
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.