The nvidia-cuda-toolkit-gcc package only contains the /usr/bin/cuda-g++ and /usr/bin/cuda-gcc wrappers and has a dependency on the highest supported g++, currently g++-12.
See: https://packages.ubuntu.com/mantic/devel/nvidia-cuda-toolkit-gcc
The nvidia- cuda-toolkit- gcc package only contains the /usr/bin/cuda-g++ and /usr/bin/cuda-gcc wrappers and has a dependency on the highest supported g++, currently g++-12.
See: https:/ /packages. ubuntu. com/mantic/ devel/nvidia- cuda-toolkit- gcc