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

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