I wants to generate cuda code using gpu coder for jetson xavier!
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
DaHoon Jeong
le 10 Avr 2020
Commenté : DaHoon Jeong
le 17 Avr 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 commentaires
Réponse acceptée
Hariprasad Ravishankar
le 13 Avr 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with GPU Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!