NVIDIA GPU loadable plugin
Source
"NVML error: The requested vgpu operation is not available on target device because ECC is enabled",
/*
** 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
import (
"golang.zabbix.com/sdk/errs"
)
// Go idiomatic error constants.
var (
ErrSuccess error // Represents successful operation (no error)
ErrUninitialized = errs.New(
"NVML error: NVML was not first initialized with nvmlInit()",
)
ErrInvalidArgument = errs.New(
"NVML error: A supplied argument is invalid",
)
ErrNotSupported = errs.New(
"NVML error: The requested operation is not available on target device",
)
ErrNoPermission = errs.New(
"NVML error: The current user does not have permission for operation",
)
ErrAlreadyInitialized = errs.New(
"NVML error: Multiple initializations are now allowed through ref counting",
)
ErrNotFound = errs.New(
"NVML error: A query to find an object was unsuccessful",
)
ErrInsufficientSize = errs.New(
"NVML error: An input argument is not large enough",
)
ErrInsufficientPower = errs.New(
"NVML error: A device's external power cables are not properly attached",
)
ErrDriverNotLoaded = errs.New(
"NVML error: NVIDIA driver is not loaded",
)
ErrTimeout = errs.New(
"NVML error: User provided timeout passed",
)
ErrIrqIssue = errs.New(
"NVML error: NVIDIA Kernel detected an interrupt issue with a GPU",
)
ErrLibraryNotFound = errs.New(
"NVML error: NVML Shared Library couldn't be found or loaded",
)
ErrFunctionNotFound = errs.New(