Skip to content
Projects

mpifield.kernels.gather_linear_1d.gather_linear_1d_metal

The Metal version (Apple-silicon GPU, float32) of the gather_linear_1d kernel.

gather_linear_1d_pyccel.py next to this file is the CPU version with the same arguments. One thread per marker (positions (1, N), result (components, N)); see :mod:mpifield.kernels._metal_grid.

Functions

NameDescription
gather_linear_1dInterpolate field (nx, components) at the markers into result (components, N).

gather_linear_1dfunction#

def gather_linear_1d(positions: Array, field: Array, result: Array, lower_x: float, cell_size_x: float, num_x: int, periodic_x: int) -> None

Interpolate field (nx, components) at the markers into result (components, N).