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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!