Basic Code Generation : FAILED (GPU code generation failed with an error)

When I use the GPU Coder, I encountered issues with the following environment configuration:
  • GPU Version: NVIDIA GeForce RTX 3050 Laptop
  • MATLAB Version: R2024b.
  • CUDA Toolkit Version: 11.8.
  • Visual Studio Version: 2022 (with "Desktop Development with C++" component installed).
when I test
gpuEnvObj = coder.gpuEnvConfig;
gpuEnvObj.BasicCodegen = 1;
gpuEnvObj.BasicCodeexec = 1;
gpuEnvObj.DeepLibTarget = 'cudnn';
gpuEnvObj.DeepCodeexec = 1;
gpuEnvObj.DeepCodegen = 1;
results = coder.checkGpuInstall(gpuEnvObj);
results are as follows
Compatible GPU : PASSED
CUDA Environment : PASSED
Runtime : PASSED
cuFFT : PASSED
cuSOLVER : PASSED
cuBLAS : PASSED
cuDNN Environment : PASSED
Host Compiler : PASSED
Basic Code Generation : FAILED (GPU code generation failed with an error. View report for further information: View report)
Deep Learning (cuDNN) Code Generation: FAILED (GPU code generation failed with an error. View report for further information: View report)
when I click the View report,the same mistake occurred on https://ww2.mathworks.cn/matlabcentral/answers/2175979-coder-checkgpuinstall-basic-code-generation-failed-gpu-code-generation-failed-with-an-error. However, using the solution behind this answer does not seem to work.
How to deal with it?Thanks for any suggestions.

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Get Started with GPU Coder についてさらに検索

タグ

質問済み:

yi
2025 年 10 月 27 日

コメント済み:

2025 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by