Why does "coder.checkGpuInstall" fail with an error "emlc:compilationError" on the "Test Basic Code Generation" step?

After installing GPU Coder, I ran the "coder.checkGpuInstall" function. This function returned:
>> coder.checkGpuInstall
Compatible GPU : PASSED
CUDA Environment : PASSED
Runtime : PASSED
cuFFT : PASSED
cuSOLVER : PASSED
cuBLAS : PASSED
cuDNN Environment : PASSED
Basic Code Generation : FAILED (Test GPU code generation failed with the error 'emlc:compilationError'. View report for further information: View report)
Why is this last test "FAILED"? 

 Accepted Answer

This error may be indicative of an incompatible compiler. You can check which C++ compiler is being used by executing: 
>> mex -setup c++
on the command line. The GPU Coder setup documentation lists the only supported compilers for GPU Coder.
Another possible source of this error message for Deep Learning basic code generation is an incorrect cuDNN version. Check that you are using the specified version of cuDNN from the
.

More Answers (0)

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Products

Release

R2022a

Community Treasure Hunt

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

Start Hunting!