Clear Filters
Clear Filters

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

2 views (last 30 days)
ruofan wang
ruofan wang on 26 Jun 2023
Commented: ruofan wang on 26 Jun 2023
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 Comments
ruofan wang
ruofan wang on 26 Jun 2023
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 on 26 Jun 2023
I installed the gcc 7.3, and not use.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!