Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how can i fix the following error

1 回表示 (過去 30 日間)
nuha hashem
nuha hashem 2019 年 7 月 6 日
閉鎖済み: Stephan 2019 年 7 月 6 日
>> 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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by