Info

This question is closed. Reopen it to edit or answer.

how can i fix the following error

1 view (last 30 days)
nuha hashem
nuha hashem on 6 Jul 2019
Closed: Stephan on 6 Jul 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\tp249d0e7e_8e16_4368_8b40_8d01baa50319\codegen\mex\gpuSimpleTest" -I "C:\Users\nuha\AppData\Local\Temp\tp249d0e7e_8e16_4368_8b40_8d01baa50319" -I ".\interface" -I "C:\PROGRA~1\MATLAB\R2018b\extern\include" -I "." "gpuSimpleTest_data.cu"
nvcc fatal : Microsoft Visual Studio configuration file 'vcvars64.bat' could not be found for installation at 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/../..'
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
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
while the file vcvars64.bat is existed in the specifed folder

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!