enum nk_status_t Positive values are reserved for results written with a caveat.
Statuses fall into three categories, with no interruptions or defects to report. Resources: nk_bad_alloc_k, nk_missing_gpu_k, nk_device_code_mismatch_k, nk_missing_kernel_k and nk_missing_library_k. Input: nk_unexpected_dimensions_k, nk_device_memory_mismatch_k and nk_misaligned_k. State: nk_pack_mismatch_k. Any verb that allocates, binds a device or touches a file may also return a Resources status. A verb's own block lists only what its contract adds.
Values
nk_success_k | 0 | Scheduled, or finished, without error. |
|---|---|---|
nk_bad_alloc_k | -10 | The queue could not take more memory, or record another block. |
nk_unexpected_dimensions_k | -15 | Operand shapes contradict each other, like head counts that don't divide. |
nk_missing_gpu_k | -16 | No GPU of the vendor this build targets answers. |
nk_device_code_mismatch_k | -17 | The device code lacks the kernel, or it failed to build, launch or finish. |
nk_device_memory_mismatch_k | -18 | An operand lies in memory the device cannot address. |
nk_missing_kernel_k | -19 | No capability in the capability mask has this kernel. |
nk_misaligned_k | -20 | An operand or stride breaks the alignment contract. |
nk_pack_mismatch_k | -21 | The buffer was packed by another capability or layout than the one reading it. |
nk_missing_library_k | -22 | A dispatch point or finder called from a header-only build, which links no library. |
Spellings
char const * nk_status_name(nk_status_t status);