필터 지우기
필터 지우기

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.
I referenced https://www.youtube.com/watch?v=0FPPBGAKw8k (mathworks tutorial)
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

채택된 답변

Hariprasad Ravishankar
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 CenterFile 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!

Translated by