Repository navigation
distro/rhel-10: ami-nvidia: use production branch of nvidia drivers - #2776
Conversation
The kernel module already gets installed via the "nvidia-driver" package.
…tack nvidia provides three branches for their drivers [1]: 1) New Feature Branch: for early adopters. Current version: R615.x 2) Production Branch: used in production for enterprise/data center GPUs, with major releases twice a year. Current version: R595.x 3) Long Term Support Branch, with longer cycle of support. Current version: R580.x The RHEL nvidia AMI targets the production branch, as does the AWS DLAMI. Lock the package versions of affected packages to the latest available R595 version using wildcards. [1] https://docs.nvidia.com/datacenter/tesla/drivers/latest/driver-lifecycle.html
Technically, the used CUDA version must match the installed GPU driver version, as every GPU driver has a maximum CUDA version it supports. The image definition now ties the GPU driver to the current production branch, but the CUDA version is floating and will install the latest available version. The "cuda-compat" package provides forward compatibility, which allows newer CUDA versions to work with older drivers [1]. This replicates the behavior of the 'rhel-drivers' tool, which also installs the latest CUDA version and the compatibility package. [1] https://docs.nvidia.com/deploy/cuda-compatibility/610/index.html
ad483fc to
86cf7f1
Compare
supakeen
left a comment
There was a problem hiding this comment.
How are we going to manage these versions? It seems we will need to switch them twice per year (or once per year?), does that coincide with the RHEL release cycle (e.g. will we have different versions on each RHEL minor?), it seems they are supported much shorter than a RHEL minor is?
|
The version and release cadence is sub-optimal: nothing is synced. Every production branch driver is generally supported for about 1 year. The current one (R595) until March 2027. Depending on when and also which of the drivers are packaged in the supplementary/extensions repo, I fear we will need to update the version accordingly, until there's a better alternative in place. |
achilleas-k
left a comment
There was a problem hiding this comment.
Bit weird, but I understand the problem and limitations of our solutions.
LGTM.
| - "nvidia-driver-3:595*" | ||
| - "nvidia-driver-cuda-3:595*" | ||
| - "nvidia-fabricmanager-595*" | ||
| - "nvidia-persistenced-3:595*" |
There was a problem hiding this comment.
I fully understand the reasoning here but I share Simon's concerns about maintainability. I'm ok merging this if we consider it a workaround until we can figure out a better strategy. Some of the image definition work might make this easier, with layering / configuration components and repositories being defined alongside image types. Currently this ties a built-in image configuration with a very specific content source. In other words, without a repository containing those driver versions, the image can't be built.
This is only a single step beyond our typical scenario: Image configurations list packages (by name) that must exist in the repositories, but somehow this feels like an extra step in the wrong direction.
There was a problem hiding this comment.
Yes, as I said during stand up if we have no other option then we must do this but I'd really prefer if we could avoid it both from 'fail to build' and a support perspective.
nvidia provides three branches for their drivers [1]:
Current version: R615.x
GPUs, with major releases twice a year.
Current version: R595.x
Current version: R580.x
The RHEL nvidia AMI targets the production branch, as does the reference AWS Deep Learning AMI.
Lock the package versions of affected packages to the latest available R595
version using wildcards.
[1] https://docs.nvidia.com/datacenter/tesla/drivers/latest/driver-lifecycle.html