Why am I getting this error?

25 visualizzazioni (ultimi 30 giorni)
Hema Maalini
Hema Maalini il 3 Ott 2018
Risposto: TripleS SS il 27 Giu 2023
coder.checkGpuInstall('gpu','codegen','cudnn','quiet');
Warning: Selected MEX compiler 'MinGW64 Compiler (C++)' is not supported for GPU code generation. Refer to the
GPU Coder documentation for a list of supported GPU MEX compilers.
> In coder.gpu.getDefaultGpuToolchain
In emlckernel
In emlckernel
In emlcprivate
In codegen
In gpucoder.internal.system.checkGpuInstallPrivate
In gpucoder.internal.system.checkGpuInstallPrivate
In coder.checkGpuInstall (line 71)
------------------------------------------------------------------------
nvcc -c -rdc=true -Xcompiler "/wd 4819" -Xcompiler "/MD" -Xcudafe "--diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE -Wno-deprecated-declarations -arch sm_35 -I "C:\PROGRA~1\MATLAB\R2018b\simulink\include" -I "C:\PROGRA~1\MATLAB\R2018b\toolbox\shared\simtargets" -I "C:\Users\Maalini\AppData\Local\Temp\tpdfc236c2_f72f_440d_a56c_9f5754f918d1\codegen\mex\gpuSimpleTest" -I "C:\Users\Maalini\AppData\Local\Temp\tpdfc236c2_f72f_440d_a56c_9f5754f918d1" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest_data.cu"
'nvcc' is not recognized as an internal or external command,
operable program or batch file.
gmake: *** [gpuSimpleTest_data.obj] Error 1
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
Code generation failed: View Error Report
Error using coder.checkGpuInstall (line 73)
One or more of the system checks did not pass, with the following errors ...
Host CUDA Environment: (Unable to execute the nvcc command. Check your CUDA SDK installation.)
Code Generation: (Test GPU code generation failed with the following error 'emlc:compilationError'.)
Compatible GPU: (A valid GPU device not found on the host system. Execution of the generated GPU MEX will not
be available.)
  2 Commenti
dpb
dpb il 3 Ott 2018
Seems pretty clear from the very first message:
Warning: Selected MEX compiler 'MinGW64 Compiler (C++)' is not supported for GPU code generation. Refer to the
GPU Coder documentation for a list of supported GPU MEX compilers.
Dmitriy Ogureckiy
Dmitriy Ogureckiy il 25 Dic 2022
Spostato: DGM il 25 Dic 2022
the same error for me.

Accedi per commentare.

Risposte (3)

Walter Roberson
Walter Roberson il 3 Ott 2018
Modificato: Walter Roberson il 7 Nov 2018
  6 Commenti
ikeuwanuakwa
ikeuwanuakwa il 19 Ott 2020
Modificato: Walter Roberson il 19 Ott 2020
I installed Visual studios 2019 and I am getting the error
Error using dlquantization.instrument
The value of 'executionEnvironment' is invalid. No GPU available. dlquantizer requires a GPU machine to quantize a network object.
Error in dlquantizer/calibrate (line 25)
results = dlquantization.instrument(obj.NetworkObject, p.Results.data, obj.DLAccelData, 'BatchSize', p.Results.batchSize,
'MiniBatchSize', p.Results.miniBatchSize, 'ExecutionEnvironment', obj.ExecutionEnvironment);
Walter Roberson
Walter Roberson il 19 Ott 2020
Modificato: Walter Roberson il 19 Ott 2020
ikeuwanuakwa : do you have a supported NVIDIA GPU ? The supported execution environments for that function are only GPU or FPGA.

Accedi per commentare.


Hüseyin Tunç
Hüseyin Tunç il 6 Apr 2020
First download visuaal studio 2019 with sdk applications and write mex -setup to command window and then choose vs 2019 and c++.
  7 Commenti
Walter Roberson
Walter Roberson il 26 Dic 2022
okay what error do you observe?
kunal gokhe
kunal gokhe il 20 Feb 2023
Modificato: kunal gokhe il 20 Feb 2023
Hii, i'm also facing same issue, ive win 10 with GTX GPU, ive installed VS2019 but its showing host compiler c+ not found

Accedi per commentare.


TripleS SS
TripleS SS il 27 Giu 2023
I had similar problem.
Run gpuDevice from terminal
It poped an error that my nvidia driver is not supported and I have to update it first.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by