-
Notifications
You must be signed in to change notification settings - Fork 26
Switch to go-nvml instead of gpu-monitoring-tools #12
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
Conversation
inspired by elezar 47f8fd5 elezar@47f8fd5 Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com> Co-authored-by: Evan Lezar <elezar@nvidia.com>
elezar
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.
Let's name the internal package nvml to reduce the change set as a first step.
| "runtime" | ||
|
|
||
| "github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml" | ||
| "github.com/NVIDIA/go-gpuallocator/internal/gpulib" |
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.
Note: if we use:
| "github.com/NVIDIA/go-gpuallocator/internal/gpulib" | |
| nvml "github.com/NVIDIA/go-gpuallocator/internal/gpulib" |
or even rename the internal package to nvml here it should highlight changes not related to this renaming below.
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.
I would argue we just add them to go-nvlib's nvml wrapper directly and open a separate PR there
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.
Sure. That's fine too. My point is that I don't want to have changes due to the rename in the same commit as this makes things difficult to review.
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.
@klueska Your point is to not commit the internal/gpulib here, but to merge the functionality in there into go-nvlib/pkg/nvml ? and remove from this PR
| "fmt" | ||
|
|
||
| "github.com/NVIDIA/gpu-monitoring-tools/bindings/go/nvml" | ||
| "github.com/NVIDIA/go-gpuallocator/internal/gpulib" |
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.
Same comment on renaming. That would mean that only the import statement changes in this file.
| runtime.SetFinalizer(allocator, func(allocator *Allocator) { | ||
| // Explicitly ignore any errors from nvml.Shutdown(). | ||
| _ = nvml.Shutdown() | ||
| // Explicitly ignore any errors from gpulib.Shutdown(). |
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.
Renaming to nvml would mean that we don't have any changes here.
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
0448876 to
1ef5d10
Compare
|
Closing in favour of #13 |
inspired by elezar 47f8fd5 elezar@47f8fd5