I wants to generate cuda code using gpu coder for jetson xavier!
8 次查看(过去 30 天)
显示 更早的评论
I tried to generate cuda code using gpu coder for jetson xavier.
but I met error when build code.
Help!!!
Error executing command "touch -c /home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper/*.*;make -f wrapper_rtw.mk all MATLAB_WORKSPACE="/home/nvidia/MATLAB_ws/R2020a" -C /home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper". Details:
STDERR: /bin/sh: 1: nvcc: not found
make: *** [rt_nonfinite.o] Error 127
STDOUT: make: Entering directory '/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper'
nvcc -rdc=true -Xcudafe "--diag_suppress=unsigned_compare_with_zero" -c -Xcompiler -MMD,-MP -O2 -arch sm_35 -DCS_COMPLEX -DMW_CUDA_ARCH=350 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=200000 -DMODEL=wrapper -DMW_DL_DATA_PATH="/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper" -DMW_SCHED_OTHER=1 -DCS_COMPLEX -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=200000 -DMODEL=wrapper -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper/CXSparse/Include -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper/CXSparse/SuiteSparse_config -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper/CXSparse/CXSparseSupport -I/home/nvidia/MATLAB_ws/R2020a/home/jeong/Documents/MATLAB/SupportPackages/R2020a/toolbox/target/supportpackages/nvidia/include -I/home/nvidia/MATLAB_ws/R2020a/usr/local/MATLAB/R2020a/extern/include -o rt_nonfinite.o /home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper/rt_nonfinite.cpp
wrapper_rtw.mk:426: recipe for target 'rt_nonfinite.o' failed
make: Leaving directory '/home/nvidia/MATLAB_ws/R2020a/home/jeong/coding/matlab/codegen/lib/wrapper'
??? Build error: C++ compiler produced errors. See the Build Log for further details.
Code generation failed: View Error Report
0 个评论
采纳的回答
Hariprasad Ravishankar
2020-4-13
Hi DaHoon,
From the error log
STDERR: /bin/sh: 1: nvcc: not found
This seems to be an environment setup issue as the codegen is unable to find the nvcc compiler.
Please follow the steps at the link here to setup the environment variables correctly to point to the cuda root directory:
Please follow the example .bashrc file to ensure that codegen is able to remotely compile on the Jetson Xavier board.
Hari
更多回答(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!