I wants to generate cuda code using gpu coder for jetson xavier!
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DaHoon Jeong
am 10 Apr. 2020
Kommentiert: DaHoon Jeong
am 17 Apr. 2020
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 Kommentare
Akzeptierte Antwort
Hariprasad Ravishankar
am 13 Apr. 2020
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with GPU Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!