Enum DeviceStatus
- Namespace
- DotCompute.Abstractions.Models.Device
- Assembly
- DotCompute.Abstractions.dll
Represents the current operational status of a compute device. This status indicates the device's availability and readiness for computation.
public enum DeviceStatus
Fields
Available = 0Device is available and ready to accept new compute tasks.
This is the normal operational state where the device can be allocated for kernel execution. The device has completed initialization and passed all health checks.
Busy = 1Device is currently executing tasks and may have limited capacity.
The device is operational but actively processing kernels or other operations. New tasks may be queued or may need to wait for current operations to complete. The scheduler may choose to distribute load to other available devices.
Error = 3Device has encountered an error and requires attention.
The device has experienced a fault, hardware error, or other issue that prevents normal operation. Manual intervention or automatic recovery procedures may be required to restore functionality. Error details should be available through device diagnostics.
Initializing = 4Device is in the process of initialization and not yet ready.
The device is powering up, loading drivers, performing self-tests, or completing other startup procedures. This is a transitional state that should progress to Available once initialization completes.
Offline = 2Device is offline and not available for computation.
The device is not accessible, either due to hardware disconnection, driver issues, power management, or administrative shutdown. Tasks cannot be scheduled on offline devices.
Remarks
The device status is used by the scheduler to determine which devices can accept new work and for monitoring system health. Status changes may trigger events for load balancing and fault tolerance mechanisms.