how can I solve to my problem

11 vues (au cours des 30 derniers jours)
nuha hashem
nuha hashem le 5 Juil 2019
>> coder.checkGpuInstall();
Host CUDA Environment : PASSED
Runtime : PASSED
cuFFT : PASSED
cuSOLVER : PASSED
cuBLAS : PASSED
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest_data.cu"
gpuSimpleTest_data.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest_initialize.cu"
gpuSimpleTest_initialize.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest_terminate.cu"
gpuSimpleTest_terminate.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest.cu"
gpuSimpleTest.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "interface/_coder_gpuSimpleTest_info.cu"
_coder_gpuSimpleTest_info.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "interface/_coder_gpuSimpleTest_api.cu"
_coder_gpuSimpleTest_api.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "interface/_coder_gpuSimpleTest_mex.cu"
_coder_gpuSimpleTest_mex.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "MWCudaDimUtility.cu"
MWCudaDimUtility.cu
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\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tpa74630c0_9f4a_4025_97f4_45f5b39ecec6" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "cpp_mexapi_version.cpp"
cpp_mexapi_version.cpp
nvcc -m64 -Wl,--no-undefined -shared -static -L"C:\Program Files\MATLAB\R2018b\extern\lib\win64\mingw64" -llibmx -llibmex -llibmat -lm -llibmwlapack -llibmwblas -llibMatlabDataArray -llibMatlabEngine -Xnvlink -w -Wno-deprecated-gpu-targets -Xlinker /NODEFAULTLIB:libcmt.lib -o gpuSimpleTest_mex.mexw64 -arch sm_35 gpuSimpleTest_data.obj gpuSimpleTest_initialize.obj gpuSimpleTest_terminate.obj gpuSimpleTest.obj _coder_gpuSimpleTest_info.obj _coder_gpuSimpleTest_api.obj _coder_gpuSimpleTest_mex.obj MWCudaDimUtility.obj cpp_mexapi_version.obj -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64" cuda.lib cudart.lib cublas.lib cusolver.lib cufft.lib -Xlinker libemlrt.lib,libcovrt.lib,libut.lib,libmwmathutil.lib,/export:mexFunction,/export:emlrtMexFcnProperties
nvcc fatal : Unknown option 'Wl,--no-undefined'
gmake: *** [gpuSimpleTest_mex.mexw64] Error 1
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for
further details.
Code generation failed: View Error Report
Code Generation : FAILED (Test GPU code generation failed with the following error 'emlc:compilationError'.)
Warning: The CUDA driver must recompile the GPU libraries because your
device is more recent than the libraries. Recompiling can take several
minutes. Learn more.
> In parallel.internal.gpu.selectDevice
In parallel.gpu.GPUDevice.select (line 58)
In gpuDevice (line 21)
In gpucoder.internal.system.checkGpuInstallPrivate
In gpucoder.internal.system.checkGpuInstallPrivate
In coder.checkGpuInstall (line 71)
Compatible GPU : PASSED
cuDNN Environment : PASSED
  1 commentaire
Jan
Jan le 5 Juil 2019
Modifié(e) : Jan le 5 Juil 2019
You forgot to mention, what the problem is. We see an error message but do not know, what you try to do.
The message tells you, that you need to compile the GPU libraries, but
'MinGW64 Compiler (C++)' is not supported for GPU code generation

Connectez-vous pour commenter.

Réponses (1)

Cong Dong Ngoc Minh
Cong Dong Ngoc Minh le 24 Oct 2019
Modifié(e) : Cong Dong Ngoc Minh le 24 Oct 2019
You could type mex -setup and then choose language C++ with C++ compiler is Microsoft Visual C++ 2019 (or the other version)

Catégories

En savoir plus sur Call C++ from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by