35#include <hip/hip_runtime.h>
43 void *wx,
void *wy,
void *wz,
44 void *x_ref,
void *y_ref,
void *z_ref,
45 void *phi,
void *
x,
void *y,
void *z,
49 const dim3 nthrds(1024, 1, 1);
50 const dim3 nblcks((n + 1024 - 1) / 1024, 1, 1);
68 int lx,
int ly,
int lz,
int nel,
69 int local_iters,
void *nchange_d) {
71 const dim3 nthrds(256, 1, 1);
72 const dim3 nblcks((nel + 256 - 1) / 256, 1, 1);
77 lx, ly, lz, nel, local_iters, (
int*)nchange_d);
void add_kinematics_to_mesh_velocity_hip(void *wx, void *wy, void *wz, void *x_ref, void *y_ref, void *z_ref, void *phi, void *x, void *y, void *z, kinematics_params_t kin_params, int n)
void compute_cheap_dist_hip(void *d_d, void *x_d, void *y_d, void *z_d, int lx, int ly, int lz, int nel, int local_iters, void *nchange_d)
__global__ void compute_cheap_dist_kernel(T *__restrict__ d, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z, const int lx, const int ly, const int lz, const int nel, const int local_iters, int *__restrict__ nchange)
__global__ void ale_add_kinematics_kernel(const int n, T *__restrict__ wx, T *__restrict__ wy, T *__restrict__ wz, const T *__restrict__ x_ref, const T *__restrict__ y_ref, const T *__restrict__ z_ref, const T *__restrict__ phi, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z, const kinematics_params_t kin_params)
__global__ void const T *__restrict__ x