pub enum Status Zero is success, and a negative value means the call wrote nothing. A code the header this crate
was built from does not list, like the positive values C reserves for results written with a
caveat, reads as Status::Unrecognized.
Values
Success | 0 | nk_success_k: scheduled, or finished, without error. |
|---|---|---|
BadAlloc | -10 | nk_bad_alloc_k: the queue could not take more memory, or record another block. |
UnexpectedDimensions | -15 | nk_unexpected_dimensions_k: operand shapes contradict each other. |
MissingGpu | -16 | nk_missing_gpu_k: no GPU of the vendor this build targets answers. |
DeviceCodeMismatch | -17 | nk_device_code_mismatch_k: the device code lacks the kernel, or it failed to run. |
DeviceMemoryMismatch | -18 | nk_device_memory_mismatch_k: an operand lies in memory the device cannot address. |
MissingKernel | -19 | nk_missing_kernel_k: no capability in the capability mask has this kernel. |
Misaligned | -20 | nk_misaligned_k: an operand or stride breaks the alignment contract. |
PackMismatch | -21 | nk_pack_mismatch_k: the buffer was packed by another capability or layout. |
MissingLibrary | -22 | nk_missing_library_k: a dispatch point called from a build that links no library. |
Unrecognized | i32::MIN | A code outside this list, which only a library built from another header returns. |
Implements
Clone, Copy, Debug, StructuralPartialEq, PartialEq, Eq, Hash, Display