docscore conceptsconcept-dispatcher-and-tensor-iterator
Core Concepts

Concepts: Dispatcher & TensorIterator

Hardware kernel selection, multi-operand broadcast traversal, and SIMD vectorization.

Concepts: Dispatcher & TensorIterator

Hardware kernel selection, multi-operand broadcast traversal, and SIMD vectorization.

The dispatcher selects between AVX-512 SIMD assembly on CPU and cuBLAS/custom PTX kernels on GPU. TensorIterator handles arbitrary broadcasting and non-contiguous stride combinations without allocating temporary buffers.