Skip to main content

Crate t4a_desc

Crate t4a_desc 

Source
Expand description

Device-neutral kernel descriptors shared by the tensor4all CPU and GPU backends (tensor4all/tcontract-rs#209).

A descriptor says what a batched kernel computes over flat buffers, offsets, extents and leading dimensions, and nothing about how or where. It holds no buffer, pointer, device, executor, plan or scalar value. A CPU route (cpueinsum’s GroupedPlan, tcontract’s fused executor) and a GPU backend (cuBLAS grouped GEMM, CUTLASS, cuTENSOR) consume the same validated descriptor without translating it into another vocabulary.

  • gemm: a grouped-GEMM job list in NVIDIA’s grouped-GEMM model (cublasGemmGroupedBatchedEx, CUTLASS GemmGrouped), validated once into a gemm::GemmBatch together with its groups and strided runs.
  • A block-sparse tensor descriptor in cuTENSOR’s model (tensor4all/cpueinsum-rs#81) will be a sibling module; it is not here yet.

Like t4a-cost, this crate depends on nothing but std, so libraries can share it without depending on each other.

Modules§

gemm
A grouped-GEMM job list in NVIDIA’s grouped-GEMM model.

Enums§

ScalarKind
The element type of a descriptor’s buffers: the set cuBLAS grouped GEMM and cuTENSOR’s block-sparse contraction share.