sph.c file
AVX-512 neighbor loops for the SPH density sum and pressure gradient.
Same kernels as the scalar path: cubic spline and Wendland C2, support (r < 2h), normalized. Neighbors are gathered 16-wide (f32) or 8-wide (f64). The scalar functions stay the fallback.
Typedefs
Functions
-
static auto gather_f(const vm_
float_ t* base, const int* idx) -> vm_ vec -
static auto sigma_of(const int dim,
const int kernel) -> vm_
float_ t -
static auto shape_f(const vm_
vec q, const int kernel) -> vm_ vec -
static auto shape_df(const vm_
vec q, const int kernel) -> vm_ vec -
auto vm_sph_density_avx512(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_avx512(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