Why does my GPU set-up error with 'emlc:compilationError'?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    MathWorks Support Team
    
 el 4 de Mzo. de 2020
  
    
    
    
    
    Editada: MathWorks Support Team
    
 el 13 de Oct. de 2022
            When I run the setup command "coder.checkGpuInstall", it fails with 'host' gpuEnvConfig but not 'Jetson' when running a code generation test.
Respuesta aceptada
  MathWorks Support Team
    
 el 13 de Oct. de 2022
        
      Editada: MathWorks Support Team
    
 el 13 de Oct. de 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 
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Get Started with GPU Coder en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
