Versions in this module Expand all Collapse all v0 v0.0.2 Apr 21, 2022 Changes in this version + type ClockType int32 + const CLOCK_COUNT + const CLOCK_XPU v0.0.1 Apr 21, 2022 Changes in this version + const API_VERSION + const API_VERSION_STR + const BUS_TYPE_AGP + const BUS_TYPE_FPCI + const BUS_TYPE_PCI + const BUS_TYPE_PCIE + const BUS_TYPE_UNKNOWN + const DEVICE_NAME_BUFFER_SIZE + const DEVICE_PART_NUMBER_BUFFER_SIZE + const DEVICE_PCI_BUS_ID_BUFFER_SIZE + const DEVICE_PCI_BUS_ID_FMT + const DEVICE_SERIAL_BUFFER_SIZE + const DEVICE_UUID_BUFFER_SIZE + const FI_DEV_ECC_CURRENT + const FI_MAX + const FlagDefault + const FlagForce + const INIT_FLAG_NO_ATTACH + const INIT_FLAG_NO_XPUS + const NO_UNVERSIONED_FUNC_DEFS + const SYSTEM_DRIVER_VERSION_BUFFER_SIZE + const SYSTEM_XPUML_VERSION_BUFFER_SIZE + const TOPOLOGY_CPU + const VALUE_NOT_AVAILABLE + const VXPU_NAME_BUFFER_SIZE + func DeviceGetAttributes(Device Device) (DeviceAttributes, Return) + func DeviceGetComputeRunningProcesses(Device Device) ([]ProcessInfo, Return) + func DeviceGetHandleByIndex(Index int) (Device, Return) + func DeviceGetHostVxpuMode(Device Device) (HostVxpuMode, Return) + func DeviceGetMemoryInfo(Device Device) (Memory, Return) + func DeviceGetState(Device Device) (DeviceState, Return) + func ErrorString(Result Return) string + type BAR4Memory struct + Bar4Free uint64 + Bar4Total uint64 + Bar4Used uint64 + Reserved [13]uint64 + func NewBAR4Memory() *BAR4Memory + func NewBAR4MemoryRef(ref unsafe.Pointer) *BAR4Memory + func (x *BAR4Memory) Free() + func (x *BAR4Memory) PassRef() *C.xpumlBAR4Memory_t + func (x *BAR4Memory) Ref() *C.xpumlBAR4Memory_t + type BusType uint32 + type DetachXPUState int32 + const DETACH_XPU_KEEP + const DETACH_XPU_REMOVE + type Device struct + Handle *_Ctype_struct_xpumlDevice_st + func (Device Device) GetAttributes() (DeviceAttributes, Return) + func (Device Device) GetBoardId() (uint32, Return) + func (Device Device) GetComputeRunningProcesses() ([]ProcessInfo, Return) + func (Device Device) GetMemoryInfo() (Memory, Return) + type DeviceArch int32 + const DEVICE_ARCH_COUNT + const DEVICE_ARCH_KL1 + const DEVICE_ARCH_KL2 + const DEVICE_ARCH_KL3 + const DEVICE_ARCH_UNKNOWN + type DeviceArchitecture uint32 + type DeviceAttributes struct + ArchId int32 + BoardId int32 + ClusterCount uint32 + DecoderCount uint32 + DmaEngineCount uint32 + EncoderCount uint32 + GlobalMemorySizeMB uint64 + ImgProcCount uint32 + L3MemorySizeMB uint64 + MaxVFCount uint32 + ModelId int32 + Reserved [9]uint64 + SdnnCount uint32 + func NewDeviceAttributes() *DeviceAttributes + func NewDeviceAttributesRef(ref unsafe.Pointer) *DeviceAttributes + func (x *DeviceAttributes) Free() + func (x *DeviceAttributes) PassRef() *C.xpumlDeviceAttributes_t + func (x *DeviceAttributes) Ref() *C.xpumlDeviceAttributes_t + type DeviceBoard int32 + const DEVICE_BOARD_COUNT + const DEVICE_BOARD_KL1_K100 + const DEVICE_BOARD_KL1_K200 + const DEVICE_BOARD_KL2_R200 + const DEVICE_BOARD_KL2_R200_8F + const DEVICE_BOARD_KL2_R300 + const DEVICE_BOARD_UNKNOWN + type DeviceModel int32 + const DEVICE_MODEL_COUNT + const DEVICE_MODEL_KL1_K100 + const DEVICE_MODEL_KL1_K200 + const DEVICE_MODEL_KL2_R200 + const DEVICE_MODEL_KL2_R200_8F + const DEVICE_MODEL_KL2_R200_SRIOV_PF + const DEVICE_MODEL_KL2_R200_SRIOV_VF_ONE_OF_ONE + const DEVICE_MODEL_KL2_R200_SRIOV_VF_ONE_OF_THREE + const DEVICE_MODEL_KL2_R200_SRIOV_VF_ONE_OF_TWO + const DEVICE_MODEL_KL2_R300 + const DEVICE_MODEL_UNKNOWN + type DeviceState int32 + const DEVICE_STATE_ERROR + const DEVICE_STATE_IN_EXCEPTION + const DEVICE_STATE_IN_RESET + const DEVICE_STATE_RUNNING + const DEVICE_STATE_UNUSED + type EnableState int32 + const FEATURE_DISABLED + const FEATURE_ENABLED + type FieldValue struct + FieldId uint32 + LatencyUsec int64 + ScopeId uint32 + Timestamp int64 + Value [8]byte + ValueType uint32 + XpumlReturn uint32 + func NewFieldValue() *FieldValue + func NewFieldValueRef(ref unsafe.Pointer) *FieldValue + func (x *FieldValue) Free() + func (x *FieldValue) PassRef() *C.xpumlFieldValue_t + func (x *FieldValue) Ref() *C.xpumlFieldValue_t + type HostVxpuMode int32 + const HOST_VXPU_MODE_NON_SRIOV + const HOST_VXPU_MODE_SRIOV_OFF + const HOST_VXPU_MODE_SRIOV_ON + type Memory struct + FreeGlobalMemory uint64 + FreeL3Memory uint64 + PageSizeGlobalMemory uint64 + PageSizeL3Memory uint64 + Reserved [8]uint64 + TotalGlobalMemory uint64 + TotalL3Memory uint64 + UsedGlobalMemory uint64 + UsedL3Memory uint64 + func NewMemory() *Memory + func NewMemoryRef(ref unsafe.Pointer) *Memory + func (x *Memory) Free() + func (x *Memory) PassRef() *C.xpumlMemory_t + func (x *Memory) Ref() *C.xpumlMemory_t + type MemoryLocation int32 + const MEMORY_LOCATION_COUNT + const MEMORY_LOCATION_GLOBAL_MEMORY + const MEMORY_LOCATION_L3_MEMORY + type PciInfo struct + Bus uint32 + BusId [32]int8 + Device uint32 + Domain uint32 + Function uint32 + PciDeviceId uint32 + PciSubSystemId uint32 + Reserved [9]uint64 + func NewPciInfo() *PciInfo + func NewPciInfoRef(ref unsafe.Pointer) *PciInfo + func (x *PciInfo) Free() + func (x *PciInfo) PassRef() *C.xpumlPciInfo_t + func (x *PciInfo) Ref() *C.xpumlPciInfo_t + type PcieLinkState int32 + const PCIE_LINK_KEEP + const PCIE_LINK_SHUT_DOWN + type PcieUtilCounter int32 + const PCIE_UTIL_COUNT + const PCIE_UTIL_RX_BYTES + const PCIE_UTIL_TX_BYTES + type PerfPolicyType int32 + const PERF_POLICY_BOARD_LIMIT + const PERF_POLICY_COUNT + const PERF_POLICY_LOW_UTILIZATION + const PERF_POLICY_POWER + const PERF_POLICY_RELIABILITY + const PERF_POLICY_SYNC_BOOST + const PERF_POLICY_THERMAL + const PERF_POLICY_TOTAL_APP_CLOCKS + const PERF_POLICY_TOTAL_BASE_CLOCKS + type ProcessInfo struct + Pid uint32 + Reserved [13]uint64 + UsedGlobalMemory uint64 + UsedL3Memory uint64 + func NewProcessInfo() *ProcessInfo + func NewProcessInfoRef(ref unsafe.Pointer) *ProcessInfo + func (x *ProcessInfo) Free() + func (x *ProcessInfo) PassRef() *C.xpumlProcessInfo_t + func (x *ProcessInfo) Ref() *C.xpumlProcessInfo_t + type ProcessUtilizationSample struct + DecUtil uint32 + EncUtil uint32 + MemUtil uint32 + Pid uint32 + SmUtil uint32 + TimeStamp uint64 + func NewProcessUtilizationSample() *ProcessUtilizationSample + func NewProcessUtilizationSampleRef(ref unsafe.Pointer) *ProcessUtilizationSample + func (x *ProcessUtilizationSample) Free() + func (x *ProcessUtilizationSample) PassRef() *C.xpumlProcessUtilizationSample_t + func (x *ProcessUtilizationSample) Ref() *C.xpumlProcessUtilizationSample_t + type RawString string + func (raw RawString) Copy() string + type Return int32 + const ERROR_ALREADY_INITIALIZED + const ERROR_CORRUPTED_INFOROM + const ERROR_DRIVER_NOT_LOADED + const ERROR_FREQ_NOT_SUPPORTED + const ERROR_FUNCTION_NOT_FOUND + const ERROR_INSUFFICIENT_POWER + const ERROR_INSUFFICIENT_RESOURCES + const ERROR_INSUFFICIENT_SIZE + const ERROR_INVALID_ARGUMENT + const ERROR_IN_USE + const ERROR_IRQ_ISSUE + const ERROR_LIBRARY_NOT_FOUND + const ERROR_LIB_RM_VERSION_MISMATCH + const ERROR_MEMORY + const ERROR_NOT_FOUND + const ERROR_NOT_SUPPORTED + const ERROR_NO_DATA + const ERROR_NO_PERMISSION + const ERROR_OPERATING_SYSTEM + const ERROR_RESET_REQUIRED + const ERROR_TIMEOUT + const ERROR_UNINITIALIZED + const ERROR_UNKNOWN + const ERROR_VXPU_ECC_NOT_SUPPORTED + const ERROR_XPU_IS_LOST + const SUCCESS + func DeviceGetBoardId(Device Device) (uint32, Return) + func DeviceGetCount() (int, Return) + func DeviceSetSriovVfNum(Device Device, VfNum int32) Return + func Init() Return + func Shutdown() Return + func SystemGetDriverVersion() (string, Return) + func SystemGetXPUMLVersion() (string, Return) + type Sample struct + SampleValue [8]byte + TimeStamp uint64 + func NewSample() *Sample + func NewSampleRef(ref unsafe.Pointer) *Sample + func (x *Sample) Free() + func (x *Sample) PassRef() *C.xpumlSample_t + func (x *Sample) Ref() *C.xpumlSample_t + type SamplingType int32 + const DEC_UTILIZATION_SAMPLES + const ENC_UTILIZATION_SAMPLES + const MEMORY_CLK_SAMPLES + const MEMORY_UTILIZATION_SAMPLES + const PROCESSOR_CLK_SAMPLES + const SAMPLINGTYPE_COUNT + const TOTAL_POWER_SAMPLES + const XPU_UTILIZATION_SAMPLES + type TemperatureSensors int32 + const TEMPERATURE_COUNT + const TEMPERATURE_XPU + type TemperatureThresholds int32 + const TEMPERATURE_THRESHOLD_ACOUSTIC_CURR + const TEMPERATURE_THRESHOLD_ACOUSTIC_MAX + const TEMPERATURE_THRESHOLD_ACOUSTIC_MIN + const TEMPERATURE_THRESHOLD_COUNT + const TEMPERATURE_THRESHOLD_MEM_MAX + const TEMPERATURE_THRESHOLD_SHUTDOWN + const TEMPERATURE_THRESHOLD_SLOWDOWN + const TEMPERATURE_THRESHOLD_XPU_MAX + type Utilization struct + Memory uint32 + Reserved [15]uint64 + Xpu uint32 + func NewUtilization() *Utilization + func NewUtilizationRef(ref unsafe.Pointer) *Utilization + func (x *Utilization) Free() + func (x *Utilization) PassRef() *C.xpumlUtilization_t + func (x *Utilization) Ref() *C.xpumlUtilization_t + type Value [sizeofValue]byte + type ValueType int32 + const VALUE_TYPE_COUNT + const VALUE_TYPE_DOUBLE + const VALUE_TYPE_SIGNED_LONG_LONG + const VALUE_TYPE_UNSIGNED_INT + const VALUE_TYPE_UNSIGNED_LONG + const VALUE_TYPE_UNSIGNED_LONG_LONG + type ViolationTime struct + ReferenceTime uint64 + ViolationTime uint64 + func NewViolationTime() *ViolationTime + func NewViolationTimeRef(ref unsafe.Pointer) *ViolationTime + func (x *ViolationTime) Free() + func (x *ViolationTime) PassRef() *C.xpumlViolationTime_t + func (x *ViolationTime) Ref() *C.xpumlViolationTime_t + type VxpuGuestInfoState int32 + const VXPU_INSTANCE_GUEST_INFO_STATE_INITIALIZED + const VXPU_INSTANCE_GUEST_INFO_STATE_UNINITIALIZED + type VxpuInstance uint32 + type VxpuTypeId uint32 + type VxpuVmIdType int32 + const VXPU_VM_ID_DOMAIN_ID + const VXPU_VM_ID_UUID + type XPUP2PCapsIndex int32 + const P2P_CAPS_INDEX_ATOMICS + const P2P_CAPS_INDEX_KLINK + const P2P_CAPS_INDEX_PROP + const P2P_CAPS_INDEX_READ + const P2P_CAPS_INDEX_UNKNOWN + const P2P_CAPS_INDEX_WRITE + type XPUP2PStatus int32 + const P2P_STATUS_CHIPSET_NOT_SUPPORED + const P2P_STATUS_DISABLED_BY_REGKEY + const P2P_STATUS_IOH_TOPOLOGY_NOT_SUPPORTED + const P2P_STATUS_NOT_SUPPORTED + const P2P_STATUS_OK + const P2P_STATUS_UNKNOWN + const P2P_STATUS_XPU_NOT_SUPPORTED + type XPUTopologyLevel int32 + const TOPOLOGY_HOSTBRIDGE + const TOPOLOGY_INTERNAL + const TOPOLOGY_MULTIPLE + const TOPOLOGY_NODE + const TOPOLOGY_SINGLE + const TOPOLOGY_SYSTEM + type XPUVirtualizationMode int32 + const XPU_VIRTUALIZATION_MODE_HOST_VSGA + const XPU_VIRTUALIZATION_MODE_HOST_VXPU + const XPU_VIRTUALIZATION_MODE_NONE + const XPU_VIRTUALIZATION_MODE_PASSTHROUGH + const XPU_VIRTUALIZATION_MODE_VXPU