pystencils.codegen.target.Target

Contents

pystencils.codegen.target.Target#

class pystencils.codegen.target.Target(value)#

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

Methods

is_automatic()

Determine if this target is a proxy target that is automatically resolved according to the runtime environment.

is_cpu()

Determine if this target is a CPU target.

is_vector_cpu()

Determine if this target is a vector CPU target.

is_gpu()

Determine if this target is a GPU target.

auto_cpu()

Return the most capable vector CPU target available on the current machine.

auto_gpu()

Return the GPU target available in the current runtime environment.

available_targets()

List available

available_vector_cpu_targets()

Returns a list of available vector CPU targets, ordered from least to most capable.

Attributes

CurrentCPU

Auto-best CPU target.

GenericCPU

Generic CPU target.

CPU

Alias for backward-compatibility

X86_SSE

x86 architecture with SSE vector extensions.

X86_AVX

x86 architecture with AVX vector extensions.

X86_AVX512

x86 architecture with AVX512 vector extensions.

X86_AVX512_FP16

x86 architecture with AVX512 vector extensions and fp16-support.

ARM_NEON

ARM architecture with NEON vector extensions

ARM_SVE

ARM architecture with SVE vector extensions

CurrentGPU

Auto-best GPU target.

CUDA

Generic CUDA GPU target.

HIP

Generic HIP GPU target.

GPU

Alias for Target.CurrentGPU, for backward compatibility.

SYCL

SYCL kernel target.