About cuda programming on nx and nano

Hello,

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

Hello,

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

Thank you.

Hi @forumuser

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.

Ilies

1 Like

Hi,

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

Thanks.

1 Like