NVIDIA / go-nvml

Go Bindings for the NVIDIA Management Library (NVML)
Apache License 2.0
310 stars 63 forks source link

Add additional functionality to the mock dgxa100 server #114

Closed klueska closed 6 months ago

klueska commented 6 months ago

No, I think that makes sense. It will still implement the interface (so we can assign it to the interface in the calling code), but it can also be extended if desired from the calling code (which the current implementation doesn't allow). Let me add that in this PR.

klueska commented 6 months ago

OK, updated with that change. I also vendored it into mig-parted and tested it to make sure it didn't break anything by doing this.

klueska commented 6 months ago

Added one more commit to introduce locks to protect from concurrent reads/writes of maps