pystencils.backend.platforms.GenericCpu#
- class pystencils.backend.platforms.GenericCpu(ctx)#
Generic CPU platform.
The
GenericCPUplatform models the following execution environment:Generic multicore CPU architecture
Iteration space represented by a loop nest, kernels are executed as a whole
C standard library math functions available (
#include <math.h>or#include <cmath>)
- Parameters:
ctx (KernelCreationContext)
- property required_headers: set[str]#
Set of header files that must be included at the point of definition of a kernel running on this platform.
- select_function(call)#
Select an implementation for the given function on the given data type.
If no viable implementation exists, raise a
MaterializationError.- Return type:
- Parameters:
call (PsCall)