t4a-desc 0.1.0

Device-neutral kernel descriptors for the tensor4all stack: a validated grouped-GEMM job list in NVIDIA's grouped-GEMM model (per-problem m, n, k, lda, ldb, ldc; ops N/T/C), with its groups and strided runs
Documentation
//! Unit tests of the GEMM descriptor, split by concern.

use super::{GemmBatch, GemmError, GemmJob, GemmOps, GemmRun, Operand, Trans};
use crate::ScalarKind;

mod checks;
mod fresh;
mod layout;
mod overlap;
mod partitions;

const NN: GemmOps = GemmOps {
    a: Trans::N,
    b: Trans::N,
};

/// Validate as `f64`.
fn batch(ops: GemmOps, jobs: Vec<GemmJob>) -> Result<GemmBatch, GemmError> {
    GemmBatch::new(ScalarKind::F64, ops, jobs)
}

/// A compact N/N job of `m×n×k` writing `C` at `c`, reading `A` and `B` at 0.
fn at(c: usize, m: usize, n: usize, k: usize) -> GemmJob {
    GemmJob::compact(NN, [0, 0, c], m, n, k)
}