Skip to main content

Module dtype

Module dtype 

Source
Expand description

AccelDtype — backend-agnostic numeric data-type trait.

Every numeric kernel actor in atomr-accel works over T: AccelDtype so allocation, copy, and op messages can be dtype-generic without exploding into one variant per (op, dtype) pair.

The trait captures only what every backend agrees on (size, identity values, NaN, a discriminant for runtime dispatch). Backend-specific traits like CudaDtype layer on top with the binding-specific mappings (cudarc enums for CUDA, Metal MTLDataType for Metal, hipblasDatatype_t for ROCm, …).

Enums§

DType
Compact discriminant for AccelDtype::KIND.

Traits§

AccelDtype
Marker for any numeric type that can be a typed device buffer element across atomr-accel backends.