NVIDIA GPU loadable plugin
Source
// MemoryLocation represents the location of the memory error (device memory, register file, etc.).
/*
** Zabbix
** Copyright (C) 2001-2024 Zabbix SIA
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**/
package nvml
const (
// DeviceUUIDBufferSize indicates buffer size
// guaranteed to be large enough for nvmlDeviceGetUUID.
deviceUUIDBufferSize = 80
// SystemDriverVersionBufferSize indicates buffer size
// guaranteed to be large enough for nvmlSystemGetDriverVersion.
systemDriverVersionBufferSize = 80
// SystemNVMLVersionBufferSize indicates buffer size
// guaranteed to be large enough for nvmlSystemGetNVMLVersion.
systemNVMLVersionBufferSize = 80
// DeviceNameBufferSize indicates
// buffer size guaranteed to be large enough for nvmlDeviceGetName.
deviceNameBufferSize = 64
// DeviceSerialBufferSize indicates buffer size
// guaranteed to be large enough for nvmlDeviceGetSerial.
deviceSerialBufferSize = 30
)
// Constants for PCIe Metric Types (TX and RX).
const (
TX PcieMetricType = 0 // PCIe transmit throughput
RX PcieMetricType = 1 // PCIe receive throughput
)
// Constants for ClockType representing various NVML clock types.
const (
Graphics ClockType = 0 // Graphics clock
SM ClockType = 1 // SM (Streaming Multiprocessor) clock
Memory ClockType = 2 // Memory clock
Video ClockType = 3 // Video encoder/decoder clock
)
// Constants for MemoryErrorType.
const (
MemoryErrorTypeCorrected MemoryErrorType = 0 // Corrected memory errors
MemoryErrorTypeUncorrected MemoryErrorType = 1 // Uncorrected memory errors
)
// Constants for MemoryLocation.
const (