Dear community,
I am trying to run the CUDA examples on the Jetson nano, here is what I have done:
-
/usr/local/cuda-10.0/bin/cuda-install-samples-10.0.sh
-
add the following lines to /home/.bashrc (or nvcc cannot be found)
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} -
add path to the Makefile of the project I want to run:
Common includes and paths for CUDA
INCLUDES := -I/home/jetbot/Documents/CUDA_Prj/NVIDIA_CUDA-10.0_Samples/common/inc
LIBRARIES := -
$ make the project, generate ~.o
/usr/local/cuda-10.0/bin/nvcc -ccbin g++ -I/home/jetbot/Documents/CUDA_Prj/NVIDIA_CUDA-10.0_Samples/common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o asyncAPI.o -c asyncAPI.cu
/usr/local/cuda-10.0/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_32,code=sm_32 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -o asyncAPI asyncAPI.o
mkdir -p …/…/bin/aarch64/linux/release
cp asyncAPI …/…/bin/aarch64/linux/release -
$ nvcc ~.cu
Then I got error : helper_cuda.h cannot be found. I googled the problem, most of answers are step 3, but not working for me. Could anyone help me on the issue? Thanks for help!