sph.c file
SVE neighbor loops for the SPH density sum and pressure gradient.
Same kernels as the scalar path. VL-agnostic: the predicate covers the tail, so there is no scalar remainder. Indexed gathers replace the NEON scalar gather. SVE2 hardware runs this kernel; SVE2 adds nothing it needs.
Typedefs
Functions
- static auto lanes(void) -> uint64_t
-
static auto sigma_of(const int dim,
const int kernel) -> vm_
float_ t -
static auto shape_f(const svbool_t pg,
const vm_
vec q, const int kernel) -> vm_ vec -
static auto shape_df(const svbool_t pg,
const vm_
vec q, const int kernel) -> vm_ vec -
auto vm_sph_density_sve(const vm_
float_ t* x, const vm_ float_ t* y, const vm_ float_ t* z, const vm_ float_ t* m, const int i, const int* neighbors, const int nn, const vm_ float_ t h, const int dim, const int kernel) -> vm_ float_ t -
auto vm_sph_pressure_grad_sve(vm_
float_ t* gx, vm_ float_ t* gy, vm_ float_ t* gz, const vm_ float_ t* x, const vm_ float_ t* y, const vm_ float_ t* z, const vm_ float_ t* m, const vm_ float_ t* rho, const vm_ float_ t* p, const int i, const int* neighbors, const int nn, const vm_ float_ t h, const int dim, const int kernel) -> bool
Defines
- #define VM_F_SUFFIX
- #define vm_set1
- #define vm_whilelt(a, b)
- #define vm_add
- #define vm_add_m
- #define vm_sub
- #define vm_mul
- #define vm_div
- #define vm_sqrt
- #define vm_max
- #define vm_cmp_lt
- #define vm_cmp_gt
- #define vm_cmp_le
- #define vm_sel
- #define vm_hsum
- #define vm_ptrue
- #define vm_ld_idx(pg, p)
- #define vm_gather(pg, base, idx)