I am using AGX Orin and just update OS and all toolkit by SDK manager.
Then I upgrade CUDA toolkit to 12.5 according to the official instructions ([CUDA Toolkit 12.5 Downloads | NVIDIA Developer]).
I see this ERROR in runtime on the AGX Orin, and the test case works on my desktop GPU.
Test on AGX Orin with JetPack 6.0 GA with CUDA 12.5 upgrade.
And the test passed:
$ ./unittest
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CUDAfunction
[ RUN ] CUDAfunction.test_cuMath_vec
[ OK ] CUDAfunction.test_cuMath_vec (83 ms)
[----------] 1 test from CUDAfunction (83 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (83 ms total)
[ PASSED ] 1 test.
Even I use your env variable settings I still see the error: C++ exception with description “parallel_for failed: cudaErrorUnsupportedPtxVersion: the provided PTX was compiled with an unsupported toolchain.” thrown in the test body.
My steps for switching CUDA version from 12.2 to 12.5:
Switch CUDA toolkits version by this script: switch-cuda