# ComputeErrorKind

`import { ComputeErrorKind } from "destack:compute";`

Compute failure category.

```ds title="ComputeErrorKind"
export enum ComputeErrorKind {
    DeviceUnavailable = 1,
    Unsupported = 2,
    CompileFailed = 3,
    KernelNotFound = 4,
    InvalidArgument = 5,
    OutOfMemory = 6,
    Backend = 7,
}
```

[language/library/src/compute/error.ds:5:20](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/error.ds#L5-L20)

## Variants

### `DeviceUnavailable = 1`

The requested device is unavailable.

### `Unsupported = 2`

The requested backend feature is unsupported.

### `CompileFailed = 3`

Program compilation failed.

### `KernelNotFound = 4`

The requested kernel entry point does not exist.

### `InvalidArgument = 5`

Kernel arguments do not match the entry point signature.

### `OutOfMemory = 6`

Device memory allocation failed.

### `Backend = 7`

The backend reported an implementation-specific failure.
