We know that gcc is backward compatible and Jetpack 5.1.2 is based on gcc and g++ versions 9.
Is it safe to use newer versions 10 or 11 on Jetpack 5.1.2?
When we install onnxruntime .whl for Jetpack 5.1.2 from the link in Jetson Zoo - eLinux.org
We get GLIBCXX error and we need to update to gcc11 to have the relevant GLIBCXX.
I want to note that onnxruntime can be an alternative for running inference with CUDA12.2 on Jetpack 5.1.2 since TensorRT is not suitable to be used with CUDA12.2 on Jetpack 5.1.2.
We also built Torch for Jetpack 5.1.2 with updated CUDA 12.2.
I think with both Pytorch and onnxruntime it is possible to make inference using CUDA 12.2.
The TensorRT coming with Jetpack 5.1.2 is compatible with CUDA 11.4 but not compatible with CUDA 12.2.
That is why Pytorch and onnxruntime inferences must rely on CUDA instead of TensorRT.