-
Notifications
You must be signed in to change notification settings - Fork 464
fix: Include /dev/nvidia2 in container requesting iGPU if required #1561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 21291215829Details
💛 - Coveralls |
ArangoGutierrez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with non-blocking NIT's
pkg/nvcdi/lib-csv.go
Outdated
| noFilterDeviceNodes bool | ||
| index int | ||
| uuid string | ||
| mode string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider
type gpuMode string
const (
gpuModeDGPU gpuMode = "dgpu"
gpuModeIGPU gpuMode = "igpu"
)| for t, p := range p.MountSpecPathsByType() { | ||
| f[t] = &matcherAsFilter{pathPatterns(p)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readability NIT
| for t, p := range p.MountSpecPathsByType() { | |
| f[t] = &matcherAsFilter{pathPatterns(p)} | |
| for t, paths := range p.MountSpecPathsByType() { | |
| f[t] = &matcherAsFilter{pathPatterns(paths)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
On Tegra-based systems where both an iGPU (e.g. Thor) and a dGPU are present, the rendering devices for the iGPU are associated with
/dev/nvidia2. This means that this device node should be included if present.Depends on #1556