Why does my GPU set-up error with 'emlc:compilationError'?

When I run the setup command "coder.checkGpuInstall", it fails with "gpuEnvConfig" set to "host" but not "Jetson" when running a code generation test.

 採用された回答

MathWorks Support Team
MathWorks Support Team 2026 年 4 月 7 日 0:00
編集済み: MathWorks Support Team 2026 年 4 月 7 日 19:03

0 投票

The host and Jetson are two different environments. In this workflow, code generation is performed on the host, and the resulting directory is copied over to the Jetson and built.
To view more information, run the check from the
to view the HTML report, or run the following checks on the command line to test basic and deep learning code generation:
% Basic Code gen
gpuEnvObj = coder.gpuEnvConfig;
gpuEnvObj.GpuId = 0;
gpuEnvObj.BasicCodegen = 1;
gpuEnvObj.BasicCodeexec = 1;
coder.checkGpuInstall(gpuEnvObj)
% Deep code gen
gpuEnvObj = coder.gpuEnvConfig;
gpuEnvObj.GpuId = 0;
gpuEnvObj.DeepLibTarget = 'cudnn';
gpuEnvObj.DeepCodegen = 1;
gpuEnvObj.DeepCodeexec = 1;
coder.checkGpuInstall(gpuEnvObj)
If  a check fails, there may be an issue with the host environment. Check that all of the following are present and correctly configured in the host environment: 
        2. Required 3rd party products 
        4. A CUDA-enabled GPU (see the NVIDIA documentation). You can find the GPU information by calling the "gpuDeviceTable" function.
        6. Up-to-date NVIDIA GPU card drivers 

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by