Enumerations

class Target(value)

The Target enumeration represents all possible targets that can be used for the code generation.

CPU = 1

Target CPU architecture.

GPU = 2

Target GPU architecture.

class Backend(value)

The Backend enumeration represents all possible backends that can be used for the code generation. Backends and targets must be combined with care. For example CPU as a target and CUDA as a backend makes no sense.

C = 1

Use the C Backend of pystencils.

CUDA = 2

Use the CUDA backend to generate code for NVIDIA GPUs.