In the previous merge to master, when specifying versions explicitly, install_gpu_driver.sh will allow the OS vendor to select the driver using the version specified as a hint.
Customers want to have instead their input used if it is provided; attempt to select reasonable defaults only if they are not provided. Version numbers should be extracted from cuda-url and gpu-driver-url if not explicitly provided in gpu-driver-version and cuda-version metadata attributes.
Refer to documentation from cuda:
https://docs.nvidia.com/deploy/cuda-compatibility/
Implementation suggestions:
When cuda-url is specified but not the gpu-driver-version, nor the gpu-driver-url, the version should be extracted from the cuda-url
- since many of the
gpu-driver-version values included in the cuda-url are not indexed at XFree86/Linux-x86_64, instead use the preferred gpu-driver-version for that cuda-version
Create new function to contain code for better mapping to support matrix.