Documentation
¶
Overview ¶
Package amdgpu is a collection of utility functions to access various properties of AMD GPU via Linux kernel interfaces like sysfs and ioctl (using libdrm.)
Index ¶
- func AMDGPU(cardName string) bool
- func DevFunctional(cardName string) bool
- func FamilyIDtoString(familyId uint32) (string, error)
- func GetAMDGPUs() map[string]map[string]int
- func GetCardFamilyName(cardName string) (string, error)
- func GetFirmwareVersions(cardName string) (map[string]uint32, map[string]uint32, error)
- func ParseTopologyProperties(path string, re *regexp.Regexp) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevFunctional ¶
DevFunctional does a simple check on whether a particular GPU is working by attempting to open the device
func FamilyIDtoString ¶
FamilyID to String convert AMDGPU_FAMILY_* into string AMDGPU_FAMILY_* as defined in https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h#L986
func GetAMDGPUs ¶
GetAMDGPUs return a map of AMD GPU on a node identified by the part of the pci address
func GetCardFamilyName ¶
func GetFirmwareVersions ¶
GetFirmwareVersions obtain a subset of firmware and feature version via libdrm amdgpu_query_firmware_version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.