We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da9e13 commit 2693419Copy full SHA for 2693419
examples/devices/main.go
@@ -50,7 +50,12 @@ func main() {
50
if ret != nvml.SUCCESS {
51
log.Fatalf("Unable to get uuid of device at index %d: %v", i, nvml.ErrorString(ret))
52
}
53
+ fmt.Printf("uuid=%v\n", uuid)
54
+ mode, ret := device.GetAddressingMode()
55
+ if ret != nvml.SUCCESS {
56
+ log.Fatalf("unabled to get addressing mode of device at index %d: %v", i, nvml.ErrorString(ret))
57
+ }
58
+ fmt.Printf("mode=%v\n", mode)
59
- fmt.Printf("%v\n", uuid)
60
61
0 commit comments