Layout is part of the type: submdspan in numerical kernels on the CPU and the GPU
Year: 2026
Type: article
Abstract: submdspan (C++26) lets a kernel work without index arithmetic on part of an array, such as a tile, a line, a plane or every other point. This report tries it on a tiled matrix product and transpose and on the kernels of three discretisations, chosen for their demanding memory patterns, on a CPU and a GPU. The views themselves cost almost nothing, and where they do cost something, the cost has a specific cause. What matters is how the data lies in memory: it changes performance by integer factors, often differently on the two devices, and the layout is usually fixed by changing a type rather than the kernel.
Author: Vassilev, Dan
Language: English
Subfield: Hardware and Architecture
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7236709965
