nvml

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NVML_DEVICE_ARCH_KEPLER  = 2          // Devices based on the NVIDIA Kepler architecture
	NVML_DEVICE_ARCH_MAXWELL = 3          // Devices based on the NVIDIA Maxwell architecture
	NVML_DEVICE_ARCH_PASCAL  = 4          // Devices based on the NVIDIA Pascal architecture
	NVML_DEVICE_ARCH_VOLTA   = 5          // Devices based on the NVIDIA Volta architecture
	NVML_DEVICE_ARCH_TURING  = 6          // Devices based on the NVIDIA Turing architecture
	NVML_DEVICE_ARCH_AMPERE  = 7          // Devices based on the NVIDIA Ampere architecture
	NVML_DEVICE_ARCH_ADA     = 8          // Devices based on the NVIDIA Ada architecture
	NVML_DEVICE_ARCH_HOPPER  = 9          // Devices based on the NVIDIA Hopper architecture
	NVML_DEVICE_ARCH_UNKNOWN = 0xffffffff // Anything else, presumably something newer
)
View Source
const (
	NVML_SUCCESS                         nvmlError = 0   //!< The operation was successful
	NVML_ERROR_UNINITIALIZED             nvmlError = 1   //!< NVML was not first initialized with nvmlInit()
	NVML_ERROR_INVALID_ARGUMENT          nvmlError = 2   //!< A supplied argument is invalid
	NVML_ERROR_NOT_SUPPORTED             nvmlError = 3   //!< The requested operation is not available on target device
	NVML_ERROR_NO_PERMISSION             nvmlError = 4   //!< The current user does not have permission for operation
	NVML_ERROR_ALREADY_INITIALIZED       nvmlError = 5   //!< Deprecated: Multiple initializations are now allowed through ref counting
	NVML_ERROR_NOT_FOUND                 nvmlError = 6   //!< A query to find an object was unsuccessful
	NVML_ERROR_INSUFFICIENT_SIZE         nvmlError = 7   //!< An input argument is not large enough
	NVML_ERROR_INSUFFICIENT_POWER        nvmlError = 8   //!< A device's external power cables are not properly attached
	NVML_ERROR_DRIVER_NOT_LOADED         nvmlError = 9   //!< NVIDIA driver is not loaded
	NVML_ERROR_TIMEOUT                   nvmlError = 10  //!< User provided timeout passed
	NVML_ERROR_IRQ_ISSUE                 nvmlError = 11  //!< NVIDIA Kernel detected an interrupt issue with a GPU
	NVML_ERROR_LIBRARY_NOT_FOUND         nvmlError = 12  //!< NVML Shared Library couldn't be found or loaded
	NVML_ERROR_FUNCTION_NOT_FOUND        nvmlError = 13  //!< Local version of NVML doesn't implement this function
	NVML_ERROR_CORRUPTED_INFOROM         nvmlError = 14  //!< infoROM is corrupted
	NVML_ERROR_GPU_IS_LOST               nvmlError = 15  //!< The GPU has fallen off the bus or has otherwise become inaccessible
	NVML_ERROR_RESET_REQUIRED            nvmlError = 16  //!< The GPU requires a reset before it can be used again
	NVML_ERROR_OPERATING_SYSTEM          nvmlError = 17  //!< The GPU control device has been blocked by the operating system/cgroups
	NVML_ERROR_LIB_RM_VERSION_MISMATCH   nvmlError = 18  //!< RM detects a driver/library version mismatch
	NVML_ERROR_IN_USE                    nvmlError = 19  //!< An operation cannot be performed because the GPU is currently in use
	NVML_ERROR_MEMORY                    nvmlError = 20  //!< Insufficient memory
	NVML_ERROR_NO_DATA                   nvmlError = 21  //!< No data
	NVML_ERROR_VGPU_ECC_NOT_SUPPORTED    nvmlError = 22  //!< The requested vgpu operation is not available on target device becasue ECC is enabled
	NVML_ERROR_INSUFFICIENT_RESOURCES    nvmlError = 23  //!< Ran out of critical resources other than memory
	NVML_ERROR_FREQ_NOT_SUPPORTED        nvmlError = 24  //!< Ran out of critical resources other than memory
	NVML_ERROR_ARGUMENT_VERSION_MISMATCH nvmlError = 25  //!< The provided version is invalid/unsupported
	NVML_ERROR_DEPRECATED                nvmlError = 26  //!< The requested functionality has been deprecated
	NVML_ERROR_NOT_READY                 nvmlError = 27  //!< The system is not ready for the request
	NVML_ERROR_GPU_NOT_FOUND             nvmlError = 28  //!< No GPUs were found
	NVML_ERROR_UNKNOWN                   nvmlError = 999 //!< An internal driver error occurred

)

Variables

This section is empty.

Functions

func FindGPUSensors

func FindGPUSensors() ([]sensors.Sensor, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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