error compiling c build error in gpu coder matlab 2017b
8 views (last 30 days)
Show older comments
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 Comment
Joss Knight
on 4 Nov 2017
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.
Answers (0)
See Also
Categories
Find more on Get Started with GPU Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!