-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add Windows support #1
Comments
Hi @klueska, since gpu-monitoring-tools cannot be used as a standlone bindings module (do to the fact it pulls in kubernetes, issue #123), I had a look a this repo. I need it for win exclusively so I wanted to patch it, went through the points you listed here, and well the bindings part is a bit tricky. I don't think that there exists functionality on Windows that mimics what |
Also a small weird thing I noticed:
Since the actual value of the flag seems to be 15:
|
Hi @rubu I will take a look more closely at your first comment later this week. Since this value is just used to set the maximum length of the buffer we pass in, we are not in danger of overunning any memory with the current implementation -- it's just a little weird to be using the arbitrary value of I am likely to just create my own constant called |
Regarding your second comment: #10 |
Curious if there's an update on this? |
The "old" version of the NVML bindings (which were a subfolder of
gpu-monitoring-tools
and not really "bindings" in the true sense of the word) were usable on both Linux and Windows.Currently these new, comprehensive bindings are only usable on Linux.
We should add windows support as well.
I envision changes in 3 places to support it:
pgk/dl
abstraction to be more generic and usable on windowsgen/nvml/init.go
to consume the updated API frompkg/dl
so that it works on both linux and windowsnvml.yml
so that all generated code is usable on both linux and windows (currently we add linux specificcgo
directives to the generated code)./cc @Drauthius who added windows support to:
https://github.com/NVIDIA/gpu-monitoring-tools/tree/master/bindings/go/nvml
The text was updated successfully, but these errors were encountered: