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
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.
Determine if this target is a vector CPU target.
is_gpu()Determine if this target is a GPU target.
default_vector_lanes(dtype)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.
List available
Returns a list of available vector CPU targets, ordered from least to most capable.
Attributes
Auto-best CPU target.
Generic CPU target.
Alias for backward-compatibility
x86 architecture with SSE vector extensions (architecture level x86-64-v2).
x86 architecture with AVX vector extensions (architecture level x86-64-v3).
x86 architecture with AVX512 vector extensions (architecture level x86-64-v4).
x86 architecture with AVX512 vector extensions (architecture level x86-64-v4) and fp16-support.
ARM architecture with NEON vector extensions
ARM architecture with SVE vector extensions
Auto-best GPU target.
Generic CUDA GPU target.
Generic HIP GPU target.
Alias for
Target.CurrentGPU, for backward compatibility.SYCL kernel target.