pystencils.codegen.config.GpuIndexingScheme.Linear3D

pystencils.codegen.config.GpuIndexingScheme.Linear3D#

GpuIndexingScheme.Linear3D = 1#

Map coordinates to global thread indices.

Supports up to three-dimensional iteration spaces. For each dimension (with known start, stop and step values), compute the current iteration point as start + step * (blockIdx.c * blockDim.c * threadDim.c) (where c \(\in\) (x, y, z)).