About cuda programming on nx and nano


I have this book.

Can I do CUDA programming directly in jetson nx xavier?
Can nvcc -o hello_world hello_world.cu be compiled in xavier nx?

There is no arm64 architecture.

Thank you.

Hi neuezeal,

You can only use the JetPack to install the CUDA on Jetson platform.
Please refer to CUDA Programing Guide.

1 Like


Jetson says it can’t find nvcc, how can I set it up?

Thank you.

Hi @neuezeal

Which Jetpack version are you using ?

Nvidia Jetpack provides the CUDA Toolkit, you can find all what you need (libraries, headers, the nvcc to compile the CUDA source code).

Please let me know if you need help.


1 Like


You can compile the CUDA sample directly on the NX.

Please make sure you have installed the CUDA toolkit from the JetPack first.
You will be able to find it in this folder: /usr/local/cuda-10.2/.

If the folder exists while the nvcc not found, please try to export the CUDA folder to .bashrc first.

$ echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
$ echo 'export PATH=/usr/local/cuda-10.2/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc


1 Like