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

40 views (last 30 days)
When I run the setup command "coder.checkGpuInstall", it fails with 'host' gpuEnvConfig but not 'Jetson' when running a code generation test.

Accepted Answer

MathWorks支万博1manbetx持团队
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:
%基本代码创
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
GPU的信息MATLAB command window:
n = gpuDeviceCount;
fori = 1:n
gpuDevice(i)
end
5. The correct CUDA Toolkit Version given the MATLAB release
6. Up-to-date Nvidia GPU card drivers

More Answers (0)

s manbetx 845


Release

R2019b

Community Treasure Hunt

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

Start Hunting!