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

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 2022년 12월 25일
이동: DGM 2022년 12월 25일
the same error for me.

댓글을 달려면 로그인하십시오.

답변 (3개)

Walter Roberson
Walter Roberson 2018년 10월 3일
편집: Walter Roberson 2018년 11월 7일

0 개 추천

댓글 수: 6

Hema Maalini
Hema Maalini 2018년 10월 12일
Thanks I will try with it
Abdelwahab Afifi
Abdelwahab Afifi 2020년 1월 2일
I have the same problem. any solutions?
Francis Tiong
Francis Tiong 2020년 4월 3일
The problem is fixed for me when I installed gcc 6.5.0.
Walter Roberson
Walter Roberson 2020년 4월 3일
gcc can only be used for GPU Coder on Linux, not on Windows; for Windows you must have Visual Studios.
ikeuwanuakwa
ikeuwanuakwa 2020년 10월 19일
편집: Walter Roberson 2020년 10월 19일
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 2020년 10월 19일
편집: Walter Roberson 2020년 10월 19일
ikeuwanuakwa : do you have a supported NVIDIA GPU ? The supported execution environments for that function are only GPU or FPGA.

댓글을 달려면 로그인하십시오.

Hüseyin Tunç
Hüseyin Tunç 2020년 4월 6일

0 개 추천

First download visuaal studio 2019 with sdk applications and write mex -setup to command window and then choose vs 2019 and c++.

댓글 수: 7

Dmitriy Ogureckiy
Dmitriy Ogureckiy 2022년 12월 25일
what are the sdk ? and how to choose vs 2019 and C++ and where ?
Walter Roberson
Walter Roberson 2022년 12월 25일
https://visualstudio.microsoft.com/vs/older-downloads/ . It looks like you will need to log in to download the older releases.
Dmitriy Ogureckiy
Dmitriy Ogureckiy 2022년 12월 25일
this doesn't work
Walter Roberson
Walter Roberson 2022년 12월 25일
Are you saying that although you created a Microsoft account, Microsoft refused to let you download VS 2019 ?
Are you saying that although you were able to download VS 2019, that your MacOS Sierra system refused to install the product?
Are you saying that you got everything installed seemingly okay, but you still encountered a message "No GPU available" ?
Dmitriy Ogureckiy
Dmitriy Ogureckiy 2022년 12월 26일
I use windows 10 and I have lenovo ideapad310-15ISK with GPU Geforce 920MX. I installed VS 2019, but I have error. I don't certain about preferencies that I set up.
Walter Roberson
Walter Roberson 2022년 12월 26일
okay what error do you observe?
kunal gokhe
kunal gokhe 2023년 2월 20일
편집: kunal gokhe 2023년 2월 20일
Hii, i'm also facing same issue, ive win 10 with GTX GPU, ive installed VS2019 but its showing host compiler c+ not found

댓글을 달려면 로그인하십시오.

TripleS SS
TripleS SS 2023년 6월 27일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 GPU Computing에 대해 자세히 알아보기

태그

질문:

2018년 10월 3일

답변:

2023년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by