-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvml_clock_offset_stub.go
More file actions
30 lines (23 loc) · 1.02 KB
/
nvml_clock_offset_stub.go
File metadata and controls
30 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//go:build !linux
// +build !linux
package main
import (
"fmt"
"github.com/NVIDIA/go-nvml/pkg/nvml"
)
// GetClockOffsetsNative retrieves clock offsets using native NVML calls (Linux only)
func GetClockOffsetsNative(device nvml.Device, deviceIndex int) (*ClockOffsets, error) {
return nil, fmt.Errorf("native clock offset functionality is only available on Linux")
}
// SetClockOffsetsNative sets clock offsets using native NVML calls (Linux only)
func SetClockOffsetsNative(device nvml.Device, deviceIndex int, config ClockOffsetConfig) error {
return fmt.Errorf("native clock offset functionality is only available on Linux")
}
// ResetClockOffsetsNative resets clock offsets to 0 using native NVML calls (Linux only)
func ResetClockOffsetsNative(device nvml.Device, deviceIndex int) error {
return fmt.Errorf("native clock offset functionality is only available on Linux")
}
// IsNativeClockOffsetSupported checks if native clock offset functionality is available (Linux only)
func IsNativeClockOffsetSupported() bool {
return false
}