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

4 visualizzazioni (ultimi 30 giorni)
When I run the setup command "coder.checkGpuInstall", it fails with 'host' gpuEnvConfig but not 'Jetson' when running a code generation test.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 13 Ott 2022
Modificato: MathWorks Support Team il 13 Ott 2022
The host and Jetson are two different environments. In the case of Jetson, the codegen is performed on the host and directory is copied over to the Jetson and built.
Try running the check from the GUI to view the HTML report. The GUI is described below:
From there, you may be able to find build logs errors which give more information. (Note: There is no difference between the GUI and command line version of checkGpuInstall except that GUI produces an HTML report). The following checks can also be used at the command line to test basic and deep learning code gen:
% 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, most likely there is something wrong with the host environment. Please make sure they have:
1. MATLAB Coder and Parallel Computing Toolbox installed in addition to GPU Coder
2. Required 3rd party products
3. Properly set up environment variables
4. A CUDA-enabled GPU
Get the GPU information from MATLAB command window:
n = gpuDeviceCount;
for i = 1:n
gpuDevice(i)
end
5. The correct CUDA Toolkit Version given the MATLAB release
6. Up-to-date Nvidia GPU card drivers 

Più risposte (0)

Categorie

Scopri di più su Get Started with GPU Coder in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by