Add gdrcopy subpackage to NVIDIA kmods#462
Merged
Merged
Conversation
arnaldo2792
reviewed
Jun 12, 2026
7e0b613 to
ac581dd
Compare
Contributor
|
Forced pushes include:
|
Contributor
|
(Forced push to fix conflicts) |
qianxjcraig
reviewed
Jul 2, 2026
Contributor
|
Forced push removes |
Contributor
|
Forced push fixes unnecessary space and sorts commits. |
piyush-jena
approved these changes
Jul 2, 2026
maherthomsi
reviewed
Jul 2, 2026
maherthomsi
approved these changes
Jul 2, 2026
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Gaurav Sharma <mgsharm@amazon.com> Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Add a gdrcopy subpackage that builds the gdrdrv kernel module against the open-gpu NVIDIA driver source. Include systemd units to copy and load the module via driverdog, gated behind the open-gpu driver variant through ghostdog. Create the /dev/gdrdrv device node at module load time using ghostdog, since the driver does not self-register it. Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
Contributor
|
Forced push includes:
|
ginglis13
approved these changes
Jul 2, 2026
| Source504: copy-grid-kernel-modules.service.in | ||
| Source505: load-grid-kernel-modules.service.in | ||
|
|
||
| Source600: nvidia-gdrcopy-open-gpu-config.toml.in |
Contributor
There was a problem hiding this comment.
nit - other sections like this we preface with a comment
Suggested change
| Source600: nvidia-gdrcopy-open-gpu-config.toml.in | |
| # GDRcopy config files from 600 to 699 | |
| Source600: nvidia-gdrcopy-open-gpu-config.toml.in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Adds gdrcopy to all NVIDIA kmods as a new subpackage. Builds for open-gpu only as there is a problem with the tesla driver (see: NVIDIA/gdrcopy#335 (comment)).
In the first iteration of the PR, there was a patch to create the device using modern kernel APIs. However those might conflict with the proprietary driver as they are GPL only.
Instead, create the devices using
mknodthrough a new command introduced inghostdogin this PR: bottlerocket-os/bottlerocket-core-kit#963Testing done:
Details
In combination with: bottlerocket-os/bottlerocket-core-kit#963
Launched 3 AMIS,
aws-ecs-2-nvidia,aws-ecs-3-nvidia,aws-ecs-4-nvidia, ran the suite of tests provided bygdrcopyand confirmed all passed:6.1
6.12
6.18
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.