Regardless of whether it is host or Jetson your CUDA install location will have a “bin/” subdirectory. Within that is “nvcc”, and this is the compiler. The trick is that perhaps JetPack set this up as part of your default path, or Nsight has this location already set, but on the Jetson you may manually have to add this to your default search path (or specify the full path).
So for example, if you have CUDA-9.0 installed, then you’ll have:
…and this will be a symbolic link to cuda-9.0 and be the same files/directories:
On host or Jetson you can see your user’s search path:
You could add to your existing path via:
(and you might need to add something like this to your “~/.bashrc” if you want to make it permanent)