Why do I receive the error "Unable to find the 'CUDA_PATH' environment variable" when using "coder.checkGpuInstall"?
10 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2021 年 5 月 3 日
編集済み: MathWorks Support Team
2021 年 5 月 3 日
I completely followed all instructions in the following URLs in order.
1. Installing Prerequisite Products
https://www.mathworks.com/help/releases/R2021a/gpucoder/gs/install-prerequisites.html
2. Setting Up the Prerequisite Products
https://www.mathworks.com/help/releases/R2021a/gpucoder/gs/setting-up-the-toolchain.html
I also restarted my Windows 10 OS in order to be able to start using the new environment variables which I had set with the above 2) manual.
But I get the following errors when using "coder.checkGpuInstall".
CUDA Environment : FAILED (Unable to find the 'CUDA_PATH' environment variable. Set 'CUDA_PATH' to point to the root directory of an installed CUDA SDK.)
cuDNN Environment : FAILED (Unable to find the 'NVIDIA_CUDNN' environment variable. Set 'NVIDIA_CUDNN' to point to the root directory of a NVIDIA cuDNN installation.)
採用された回答
MathWorks Support Team
2021 年 5 月 3 日
Looking at the error message that occurs, it is believed that the empty result will be confirmed when checking the environment variable setting with the following command.
>> getenv('CUDA_PATH')
>> getenv('NVIDIA_CUDNN')
Please register and check using the setenv command in MATLAB as in the example command below.
>> setenv('CUDA_PATH','C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2')
>> setenv('NVIDIA_CUDNN','C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\cuDNN')
Note: For CUDNN installation, you refer to the NVIDIA manual below and check whether it is installed properly.
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#download-windows
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with GPU Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!