フィルターのクリア

Why is my GPU not detected by Parallel Computing Toolbox?

125 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2023 年 11 月 2 日
編集済み: MathWorks Support Team 2024 年 8 月 12 日 14:08
When I execute "gpuDevice" command in MATLAB command prompt on a machine with a supported GPU installed, I get the following error message:
ERROR: >> gpuDeviceError using gpuDevice (line 26) No supported GPU device was found on this computer. To learn more about supported GPU devices, see www.mathworks.com/gpudevice.

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 8 月 12 日 0:00
編集済み: MathWorks Support Team 2024 年 8 月 12 日 14:08
Run gpuDevice() to get the most helpful error message. gpuDeviceTable() and gpuDeviceCount() will not provide troubleshooting information.
1.    Check you have a supported GPU card, see NVIDIA website to check compute capability (https://developer.nvidia.com/cuda-gpus
for older cards consult https://developer.nvidia.com/cuda-legacy-gpus). 
2.    Update your NVIDIA graphics drivers to their latest version for your card. It is not necessary to download the CUDA toolkit. https://www.nvidia.com/Download/index.aspx
3.    If you still cannot access your CUDA enabled device from within MATLAB check whether the device is correctly identified by your operating system using a program like nvidia-smi. If it is not seek advice from your sysadmin or NVIDIA support.
To run nvidia-smi:
  • Windows: nvidia-smi from a cmd window. Normally installed into C:\Windows\System32
  • Linux: nvidia-smi from terminal window. Normally installed into /usr/bin/
4.    In some environments such as computing clusters access to CUDA capable devices on machines are handled at a system level by techniques like control groups or general resource allocation. Checking for the presence of these systems can explain why GPUs are visible but restricted in access for other programs. This is more likely to exist on controlled HPC clusters.
CUDA_VISIBLE_DEVICES is an environment variable which will only allow access to the valid CUDA devices listed in the variable. The environment variable acts as a mask on any underlying CUDA devices. 
CUDA_VISIBLE_DEVICES = '0' % Only device 0 is accessible and usable. CUDA_VISIBLE_DEVICES = '0, 1' % Devices 0 and 1 are accessible and usable. CUDA_VISIBLE_DEVICES= 'NoDevApps' % (or any invalid input) no CUDA devices are accessible.
If CUDA_VISIBLE_DEVICES is unset then all CUDA devices are unrestricted.
If the steps in this support solution have not helped you resolve the problem, please contact MathWorks support directly:
http://www.mathworks.com/support/contact_us/

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by