I am trying to install the NVIDIA driver and Cuda toolkit but it expects gcc10. Using p2.xlarge which has Tesla k80. And Tesla k80 supports Cuda toolkit 11.4 (https://www.nvidia.com/en-us/drivers/). Then from https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version, it says that Cuda toolkit 11.4 requires gcc10.
When I installed gcc using sudo yum groupinstall "Development Tools", it gave me gcc11.
And AWS documentation says Amazon Linux 2023 does not support EPEL (https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html#epel)
Is there any easy way to install gcc10, without building it from source?