Compatibility of MEX with CUDA 7.5

4 vues (au cours des 30 derniers jours)
Fabien Vultier
Fabien Vultier le 2 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.

Réponse acceptée

Tushar Sinha
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
  1 commentaire
Fabien Vultier
Fabien Vultier le 4 Nov 2015
Bad news, but that's the answer I expected to get. Thanks a lot.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Particle & Nuclear Physics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by