Why does my GPU set-up error with 'emlc:compilationError'?
조회 수: 5 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2020년 3월 4일
편집: MathWorks Support Team
2022년 10월 13일
When I run the setup command "coder.checkGpuInstall", it fails with 'host' gpuEnvConfig but not 'Jetson' when running a code generation test.
채택된 답변
MathWorks Support Team
2022년 10월 13일
편집: MathWorks Support Team
2022년 10월 13일
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
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!