I wants to generate cuda code using gpu coder for jetson xavier!
조회 수: 2 (최근 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!