Help us shape the future of Go! Take the 2026 Go Developer Survey

accelerator

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceleratorDevice

type AcceleratorDevice struct {
	// the PCI address where the accelerator device can be found
	Address string `json:"address"`
	// pointer to a PCIDevice struct that describes the vendor and product
	// model, etc
	PCIDevice *pci.Device `json:"pci_device"`
}

func (*AcceleratorDevice) String

func (dev *AcceleratorDevice) String() string

type Info

type Info struct {
	Devices []*AcceleratorDevice `json:"devices"`
}

func New

func New(args ...any) (*Info, error)

New returns a pointer to an Info struct that contains information about the accelerator devices on the host system

func (*Info) JSONString

func (i *Info) JSONString(indent bool) string

JSONString returns a string with the processing accelerators information formatted as JSON under a top-level "accelerator:" key

func (*Info) String

func (i *Info) String() string

func (*Info) YAMLString

func (i *Info) YAMLString() string

YAMLString returns a string with the processing accelerators information formatted as YAML under a top-level "accelerator:" key

Jump to

Keyboard shortcuts

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