Compatibility of MEX with CUDA 7.5
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fabien Vultier
le 2 Nov 2015
Commenté : Fabien Vultier
le 4 Nov 2015
I use Matlab R2015b and try to compile .cu files with mexcuda. My installed CUDA toolkit is 7.5. Is this compatible with matlab or do I need version7.0?
>> setenv('MW_NVCC_PATH','/usr/local/cuda/bin')
>> mexcuda -v vectorAdd.cu
Trying MEX options '/usr/local/MATLAB/R2015b/toolbox/distcomp/gpu/extern/src/mex/glnxa64/nvcc_g++.xml'...FAILED
Warning: No supported host compiler found, or other problem with the environment.
Continuing with selected compiler to provide detailed diagnosis.
> In mexcuda (line 130)
mex -largeArrayDims -f /usr/local/MATLAB/R2015b/toolbox/distcomp/gpu/extern/src/mex/glnxa64/nvcc_g++.xml NVCC_FLAGS="" -v vectorAdd.cu
Verbose mode is on.
... Looking for compiler 'nvcc' ...
... Looking for environment variable 'MW_NVCC_PATH' ...Yes ('/usr/local/cuda/bin').
... Looking for file '/usr/local/cuda/bin/nvcc' ...Yes.
... Executing command '/usr/local/cuda/bin/nvcc --version | egrep -E 'release 7.0' > /dev/null && echo /usr/local/cuda/bin/nvcc' ...No.
... Looking for file '/usr/local/cuda-7.0/bin/nvcc' ...No.
Did not find installed compiler 'nvcc'.
Warning: Version 7.0 of the CUDA toolkit could not be found. If installed, set MW_NVCC_PATH environment variable to location of
nvcc compiler.
0 commentaires
Réponse acceptée
Tushar Sinha
le 4 Nov 2015
Hi Fabien,
Parallel Computing Toolbox for R2015b supports only CUDA® Toolkit version 7.0. Refer to the release notes of Parallel Computing toolbox for R2015b below for more information on the same:
(Expand the section on "Upgraded Cuda Toolkit version")
I hope this helps answer your question.
Thanks,
Tushar
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur GPU Computing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!