errors

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrGPULost is an error that indicates the GPU is lost.
	// Likely due to the GPU is physically removed from the machine.
	// Also manifested as Xid 79 (GPU has fallen off the bus).
	// ref. https://github.com/leptonai/gpud/issues/604
	ErrGPULost = errors.New("GPU lost")
	// ErrGPURequiresReset is an error that indicates the GPU requires reset.
	// This typically appears when NVML reports "GPU requires reset".
	ErrGPURequiresReset = errors.New("GPU requires reset")
)

Functions

func IsGPULostError

func IsGPULostError(ret nvml.Return) bool

IsGPULostError returns true if the error indicates that the GPU is lost. "if the target GPU has fallen off the bus or is otherwise inaccessible".

func IsGPURequiresReset

func IsGPURequiresReset(ret nvml.Return) bool

IsGPURequiresReset returns true if nvml.ErrorString(ret) indicates that the GPU requires reset. e.g., "GPU requires reset".

func IsNoSuchFileOrDirectoryError

func IsNoSuchFileOrDirectoryError(err error) bool

func IsNotFoundError

func IsNotFoundError(ret nvml.Return) bool

IsNotFoundError returns true if the error indicates that the object/instance is not found. e.g., process not found from nvml

func IsNotReadyError

func IsNotReadyError(ret nvml.Return) bool

IsNotReadyError returns true if the error indicates that the system is not ready, meaning that the GPU is not yet initialized. e.g., "nvml.CLOCK_GRAPHICS: System is not in ready state"

func IsNotSupportError

func IsNotSupportError(ret nvml.Return) bool

IsNotSupportError returns true if the error indicates that the operation is not supported.

func IsVersionMismatchError

func IsVersionMismatchError(ret nvml.Return) bool

IsVersionMismatchError returns true if the error indicates a version mismatch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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