Matlab link to new CUDA toolkit

5 views (last 30 days)
Matteo B.
Matteo B. on 17 Sep 2015
Answered: Edric Ellis on 18 Sep 2015
Hi everyone, I'm using matlab under Unix installed while cuda toolkit 5.0 was present. I recently upgraded to cuda toolkit 6.5 but I see from gpuDevice still matlab pointing to toolkit 5.0 (still present but not the default one). On the other side system('nvcc --version') shows properly cuda toolkit 6.5. Can you tell me the best way to redirect matlab to the new toolkit path? Thanks a lot.

Answers (1)

Edric Ellis
Edric Ellis on 18 Sep 2015
The version of the CUDA toolkit used by a particular release of MATLAB is fixed, and cannot be changed. Later releases of MATLAB use later releases of the CUDA toolkit. If you're compiling MEX files to use with MATLAB, you must use the version of nvcc that corresponds to the version of the CUDA toolkit used by MATLAB.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!