Compatibility of MEX with CUDA 7.5

2 次查看(过去 30 天)
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.

采纳的回答

Tushar Sinha
Tushar Sinha 2015-11-4
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by