query

package
v0.9.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceVendorID = "10de"

DeviceVendorID defines the vendor ID of NVIDIA devices. e.g., lspci -nn | grep -i "10de.*" ref. https://devicehunt.com/view/type/pci/vendor/10DE

Variables

This section is empty.

Functions

func CountAllDevicesFromDevDir

func CountAllDevicesFromDevDir() (int, error)

func IsErrDeviceHandleUnknownError

func IsErrDeviceHandleUnknownError(err error) bool

"NVIDIA Xid 79: GPU has fallen off the bus" may fail this syscall with: "error getting device handle for index '6': Unknown Error"

or "Unable to determine the device handle for GPU0000:CB:00.0: Unknown Error"

func ListPCIGPUs added in v0.5.0

func ListPCIGPUs(ctx context.Context) ([]string, error)

ListPCIGPUs returns all "lspci" lines that represents NVIDIA GPU devices.

Types

This section is empty.

Directories

Path Synopsis
class
Package class implements the infiniband class sysfs interface.
Package class implements the infiniband class sysfs interface.
store
Package store stores infiniband states in time-series.
Package store stores infiniband states in time-series.
Package nvml implements the NVIDIA Management Library (NVML) interface.
Package nvml implements the NVIDIA Management Library (NVML) interface.
device
Package device provides a wrapper around the "github.com/NVIDIA/go-nvlib/pkg/nvlib/device".Device type that adds a PCIBusID method.
Package device provides a wrapper around the "github.com/NVIDIA/go-nvlib/pkg/nvlib/device".Device type that adds a PCIBusID method.
lib
Package lib implements the NVIDIA Management Library (NVML) interface.
Package lib implements the NVIDIA Management Library (NVML) interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL