error compiling c build error in gpu coder matlab 2017b
8 次查看(过去 30 天)
显示 更早的评论
hello, i have been trying to matlab code to cuda c code by using gpu coder and i am getting this error. 'E:\vs2015\VC\Lib\amd64' is not recognized as an internal or external command, operable program or batch file. nvcc -c -rdc=true -Xcompiler "/wd 4819" -Xcudafe "--diag_suppress=unsigned_compare_with_zero --diag_suppress=useless_type_qualifier_on_return_type" -D_GNU_SOURCE -DMATLAB_MEX_FILE -arch sm_35 -I "D:\PROGRA~1\MATLAB\R2017b\simulink\include" -I "D:\PROGRA~1\MATLAB\R2017b\toolbox\shared\simtargets" -I "C:\Users\User1\AppData\Local\Temp\TPA4BA~1\codegen\mex\gpuSimpleTest" -I "C:\Users\User1\AppData\Local\Temp\TPA4BA~1" -I ".\interface" -I "D:\PROGRA~1\MATLAB\R2017b\extern\include" -I "." "C:\Users\User1\AppData\Local\Temp\TPA4BA~1\codegen\mex\gpuSimpleTest/gpuSimpleTest_data.cu" 'nvcc' is not recognized as an internal or external command, operable program or batch file. gmake: * [gpuSimpleTest_data.obj] Error 1
i have install visual studio 2015 and as well as cuda toolkit 8.0 also putted there value in environmental variables thanx in advance
1 个评论
Joss Knight
2017-11-4
Try adding CUDA_BIN_PATH to your PATH environment variable? It doesn't seem to be being found successfully. You can tell by attempting to run nvcc from a command prompt and seeing if Windows can find it.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!