Build error in GPU coder - nvcc fatal: Cannot find compiler 'cl.exe' in PATH

102 ビュー (過去 30 日間)
Daigo
Daigo 2022 年 3 月 20 日
コメント済み: Daigo 2022 年 3 月 20 日
I'd like to create a MEX function from my MATLAB function that has an gpuArray input. I used the GPU Coder but I got an error when I tried to build a MEX file:
I checked the Build Log and it says the following:
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
It seeems like that cl.exe is the Visual C++ compiler. One directory this execuatable is located is
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86
so I added this directory to the system path as well as to the MATLAB search path:
However, even after this, I still got the same error.
Does anyone have an idea how to fix this problem?
  1 件のコメント
Daigo
Daigo 2022 年 3 月 20 日
I fixed this problem by simply restarting MATLAB. Thank you.

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by