错误使用 mex 命令 'nvcc' 已退出,返回值为 '2'

조회 수: 1 (최근 30일)
ruofan wang
ruofan wang 2023년 6월 26일
댓글: ruofan wang 2023년 6월 26일
I use mexcuda -v filename.cu to bulid mexw64, but get error with:
命令 'nvcc' 已退出,返回值为 '2'
出错 mexcuda (line 166)
[varargout{1:nargout}] = mex(mexArguments{:});
More trouble is that, the code is correct in May, yesterday, it is wrong. I have never write it more.
could anyone help me? Thank you very much !
  댓글 수: 2
ruofan wang
ruofan wang 2023년 6월 26일
This is some details! how to solve the problem "否” ??
... 正在查找文件 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe'...是。
... 正在查找文件夹 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\nvvm\libdevice'...是。
... 正在执行命令 '(IF DEFINED MW_ALLOW_ANY_CUDA ( true ) ELSE ( false )) > NUL && echo C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\nvvm\libdevice'...否。
... 正在执行命令 '"$$\bin\nvcc" --version | findstr /c:"release 10.1" > NUL && echo $$'...否。
... 正在查找文件 'C:\Program Files\Polyspace\R2020a\sys\cuda\win64\cuda\bin\nvcc.exe'...是。
... 正在查找文件夹 'C:\Program Files\Polyspace\R2020a\bin\win64'...是。
... 正在查找文件夹 'C:\Program Files\Polyspace\R2020a\bin\win64'...是。
找到已安装的编译器 'NVIDIA CUDA Compiler'。
ruofan wang
ruofan wang 2023년 6월 26일
I installed the gcc 7.3, and not use.

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

답변 (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!