Hi,
Please try the below command to see if it helps:
export PATH=/usr/local/cuda-12/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/cuda-12.0/compat
The compat lib is required when running CUDA 12 on the Jetson whose GPU driver is older.
If Torch is still not working, please check if the package has been built with CUDA support.
Thanks.