Documentation
¶
Index ¶
- Variables
- func IsGPULostError(ret nvml.Return) bool
- func IsGPURequiresReset(ret nvml.Return) bool
- func IsNoSuchFileOrDirectoryError(err error) bool
- func IsNotFoundError(ret nvml.Return) bool
- func IsNotReadyError(ret nvml.Return) bool
- func IsNotSupportError(ret nvml.Return) bool
- func IsVersionMismatchError(ret nvml.Return) bool
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
IsGPURequiresReset returns true if nvml.ErrorString(ret) indicates that the GPU requires reset. e.g., "GPU requires reset".
func IsNotFoundError ¶
IsNotFoundError returns true if the error indicates that the object/instance is not found. e.g., process not found from nvml
func IsNotReadyError ¶
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 ¶
IsNotSupportError returns true if the error indicates that the operation is not supported.
func IsVersionMismatchError ¶
IsVersionMismatchError returns true if the error indicates a version mismatch.
Types ¶
This section is empty.