detect

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(slotType, agentID, visibleGPUs string, artificialSlots int) ([]device.Device, error)

Detect the devices available. If artificial devices are configured, prefers those, otherwise, we detect cuda, rocm, cpu (or no) devices based on the configured slot type.

Types

type RocmDevice

type RocmDevice struct {
	UUID       string `json:"Unique ID"`
	CardSKU    string `json:"Card SKU"`
	CardVendor string `json:"Card vendor"`
	CardModel  string `json:"Card model"`
	PCIBus     string `json:"PCI Bus"`
	Index      int
}

RocmDevice metadata.

func GetRocmDeviceByUUID

func GetRocmDeviceByUUID(uuid string) *RocmDevice

GetRocmDeviceByUUID gets a RocmDevice by UUID from the singleton discovered Rocm devices.

Jump to

Keyboard shortcuts

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