I installed HPCSDK23.1 on Orin (multiple versions), I used an Orin without hpcsdk installed to run cuda program, it was able to output the results, nvcc -V showed 11.4, but after installing HPCSDK the nvcc compiler was upgraded to 11.8, Compile-run with nvcc compilers is less successful. I wonder if there is any solution
While the NVHPC SDK does ship various CUDA versions, it does not affect any independent CUDA SDK installations.
Hence it’s likely the order in which the bin directory to nvcc is listed in you environment’s PATH. To use the older nvcc, ensure your PATH has the CUDA 11.4 SDK bin directory before the NVHPC compiler bin directory.