Skip to content
Projects

tree_d_3d.kernels.direct_log_sum.direct_log_sum_metal

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

direct_log_sum_pyccel.py next to this file is the CPU version with the same arguments. One thread per target; see :mod:tree_d_3d.kernels._metal.

Functions

NameDescription
direct_log_sumAll-pairs line-charge potential and field on the GPU; same conventions as the CPU.

direct_log_sumfunction#

def direct_log_sum(targets: Array, exclude: Array, pos: Array, charge: Array, softening: float, phi: Array, field: Array, status: Array) -> None

All-pairs line-charge potential and field on the GPU; same conventions as the CPU.