is there a way that i can find which version of a compiler for C++ CUDA code and the library that is built with(in this case GDAL)

is there a way that i can find which version of a compiler do i need for C++ CUDA code
and the library that is built with(in this case GDAL)

thank you