I want to develop some applications with nsightEE and execute them on the NX, i recently installed all of the CUDA components with SDK Manager.
I was able to build and execute a CUDA sample locally, but i couldn’t got it to work on my NX and i had the “permission denied” error so i followed these steps on my NX :
1. Setup root password
$ sudo passwd root
2. Edit /etc/ssh/sshd_config and modify these lines
+PermitRootLogin yes +PermitEmptyPasswords no
$ sudo reboot
It didn’t work and nsight hit me with the
Unable to find full path for “nvcc”
nvcc --version was an unknown command.
Installing the toolkit with
sudo apt install nvidia-cuda-toolkit, gave me an error code (1) :
dpkg-deb: erreur: coller subprocess was killed by signal (Broken pipe)
but nvcc was still installed :
$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85
sudo apt --fix-broken install doesn’t do anything.
Should i purge the nvidia-cuda-toolkit package and reinstall it ? Will it damage other CUDA components ?
Now my application can’t locally build and it give me :
11:48:10 **** Incremental Build of configuration Debug for project sample_cuda ****
Building file: …/src/imageDenoising.cu
Invoking: NVCC Compiler
/usr/bin/nvcc -I"/usr/local/cuda-11.1/samples/3_Imaging" -I"/usr/local/cuda-11.1/samples/common/inc" -I"/home/louis/cuda-workspace/sample_cuda" -G -g -O0 -gencode arch=compute_35,code=sm_35 -odir “src” -M -o “src/imageDenoising.d” “…/src/imageDenoising.cu”
cc1plus: fatal error: cuda_runtime.h: Aucun fichier ou dossier de ce type
src/subdir.mk:36: recipe for target ‘src/imageDenoising.o’ failed
make: *** [src/imageDenoising.o] Error 1
11:48:10 Build Finished (took 58ms)
Please be aware that i’m not used to configure IDEs and i’m beginning with Jetson products.