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"`
// contains filtered or unexported fields
}
func New ¶
New returns a pointer to an Info struct that contains information about the accelerator devices on the host system
func (*Info) JSONString ¶
JSONString returns a string with the processing accelerators information formatted as JSON under a top-level "accelerator:" key
func (*Info) YAMLString ¶
YAMLString returns a string with the processing accelerators information formatted as YAML under a top-level "accelerator:" key
Click to show internal directories.
Click to hide internal directories.