Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Sep 4, 2024
1 parent 0d91cf0 commit d16ee32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/accelerator/nvidia/query/nvml/clock_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ func ClockEventsSupported() (bool, error) {
// Returns true if clock events is supported by this device.
func ClockEventsSupportedByDevice(dev device.Device) (bool, error) {
fmt.Println("ClockEventsSupportedByDevice 1")
// https://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1gb9d291b8a6506462bf269f15fc66d66e
reasons, re2 := dev.GetSupportedClocksEventReasons()
fmt.Println("reasons:", reasons)
fmt.Println("re2:", re2)

var ret nvml.Return

Expand Down

0 comments on commit d16ee32

Please sign in to comment.