pystencils.codegen.config.GpuIndexingScheme#
- class pystencils.codegen.config.GpuIndexingScheme(value)#
Available index translation schemes for GPU kernels.
Attributes
Extract coordinates from a one-dimensional global thread index.
Extension to
GpuIndexingScheme.Linear1Dscheme which introduces additional loops with strides over the execution configuration's grid size.Map coordinates to global thread indices.
Extension to
GpuIndexingScheme.Linear3Dscheme which introduces additional loops with strides over the execution configuration's grid size.On a 3D grid of 1D blocks, map the fastest coordinate onto the intra-block thread index, and slower coordinates onto the block index.