Generate app profile for EGL/Vulkan use case#1939
Merged
Merged
Conversation
tariq1890
reviewed
Jul 13, 2026
tariq1890
reviewed
Jul 14, 2026
Coverage Report for CI Build 29937480821Coverage decreased (-0.2%) to 43.635%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
tariq1890
reviewed
Jul 14, 2026
tariq1890
approved these changes
Jul 14, 2026
tariq1890
approved these changes
Jul 14, 2026
cdesiniotis
reviewed
Jul 22, 2026
| // listDeviceNodes enumerates the entries under the container's /dev directory. | ||
| // The char-device check uses the cheap readdir type; the minor number is | ||
| // resolved for char-device entries. | ||
| func listDeviceNodes(containerRoot *os.Root) ([]deviceNode, error) { |
Contributor
There was a problem hiding this comment.
Potentially for a follow-up -- There may be an opportunity for code reuse here. We are essentially globbing for files in a root. We do this as well in the cudacompat hook, see
internal/root package that can be reused by all of our hooks. It should provide the ability to perform file operations "safely" in a root fs.
I was going to suggest we reuse the CharDeviceLocator, from https://github.com/NVIDIA/nvidia-container-toolkit/blob/main/pkg/lookup/device.go, but this code operates on file paths and therefore is not suitable for a hook where we don't trust the root fs we are operating on.
Member
Author
There was a problem hiding this comment.
Good suggestion. Let me create another PR for this refactor work to limit its scope.
Signed-off-by: Henry Wang <henrwang@nvidia.com>
cdesiniotis
approved these changes
Jul 23, 2026
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.
Fixes #1899
The current CDI/CDI-JIT implementation does not create nvidia application profile in the CDI/JIT-CDI code path.
In the legacy mode, the profile is created when the container has the "graphics/display" capability.
Adding a hook for CDI mode to create the nvidia application profile.