- Make sure that the environment variable CUDA_VISIBLE_DEVICES is not set. You can do this by running the following command in MATLAB: getenv('CUDA_VISIBLE_DEVICES')
- Run NVIDIA's tool nvidia-smi and make sure your card is enabled for compute. For example, check the Compute Mode. The tool's documentation will tell you more about this setting.
- Consider backdating the drivers by a release to see if that helps.
- Try running a CUDA sample and check if that works.
gpuDevice suddenly stopped working
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi there,
using MATLAB R2020a on Arch Linux, GPU-calls like 'gpuArray' used to work fine even until yesterday. I have no idea what happened, but since today I get
>> gpuDevice
Error using gpuDevice (line 26)
Unable to find a supported GPU device. For more information on GPU support, see GPU Support by Release.
with no chance of GPU computing. Clearly, the GPU is supported, so that cannot be the problem. I haven't found any other clue to what's wrong. Matlab does recognize the GPU though and plotting works as well
>> opengl info
Version: '4.6.0 NVIDIA 455.28'
Vendor: 'NVIDIA Corporation'
Renderer: 'GeForce GTX 1050/PCIe/SSE2'
MaxTextureSize: 32768
Visual: 'Visual 0x27, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {387×1 cell}
MaxFrameBufferSize: 32768
Unfortunatly the programs I have do not work without GPU now. I really need this fixed - any ideas on whats going on?
I have tried upgrading to R2020b, but same results. Nvidia drivers are up-to-date and nvidia-smi has a MATLAB process registered and shows CUDA Version: 11.1.
Any suggestions are very much welcome!
댓글 수: 0
채택된 답변
Andrea Picciau
2020년 10월 20일
Hello there!
I would check the following:
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!