Skip to content

Commit

Permalink
Bump to NVML version 12.3
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Klues <kklues@nvidia.com>
  • Loading branch information
klueska committed May 24, 2024
1 parent 075f45f commit b57740a
Show file tree
Hide file tree
Showing 9 changed files with 1,245 additions and 747 deletions.
745 changes: 432 additions & 313 deletions gen/nvml/nvml.h

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions pkg/nvml/const.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions pkg/nvml/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -2873,3 +2873,34 @@ func (l *library) DeviceSetPowerManagementLimit_v2(device Device, powerValue *Po
func (device nvmlDevice) SetPowerManagementLimit_v2(powerValue *PowerValue_v2) Return {
return nvmlDeviceSetPowerManagementLimit_v2(device, powerValue)
}

// nvml.DeviceGetC2cModeInfoV()
type C2cModeInfoHandler struct {
device nvmlDevice
}

func (handler C2cModeInfoHandler) V1() (C2cModeInfo_v1, Return) {
var c2cModeInfo C2cModeInfo_v1
ret := nvmlDeviceGetC2cModeInfoV(handler.device, &c2cModeInfo)
return c2cModeInfo, ret
}

func (l *library) DeviceGetC2cModeInfoV(device Device) C2cModeInfoHandler {
return device.GetC2cModeInfoV()
}

func (device nvmlDevice) GetC2cModeInfoV() C2cModeInfoHandler {
return C2cModeInfoHandler{device}
}

// nvml.DeviceGetLastBBXFlushTime()
func (l *library) DeviceGetLastBBXFlushTime(device Device) (uint64, uint, Return) {
return device.GetLastBBXFlushTime()
}

func (device nvmlDevice) GetLastBBXFlushTime() (uint64, uint, Return) {
var timestamp uint64
var durationUs uint
ret := nvmlDeviceGetLastBBXFlushTime(device, &timestamp, &durationUs)
return timestamp, durationUs, ret
}
74 changes: 74 additions & 0 deletions pkg/nvml/mock/device.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions pkg/nvml/mock/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b57740a

Please sign in to comment.