Compatibility of MEX with CUDA 7.5

조회 수: 3 (최근 30일)
Fabien Vultier
Fabien Vultier 2015년 11월 2일
댓글: Fabien Vultier 2015년 11월 4일
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
  댓글 수: 1
Fabien Vultier
Fabien Vultier 2015년 11월 4일
Bad news, but that's the answer I expected to get. Thanks a lot.

댓글을 달려면 로그인하십시오.

추가 답변 (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