35 #include <hip/hip_runtime.h>
45 void *uu,
void *vv,
void *ww,
46 void *ulag1,
void *ulag2,
void *vlag1,
47 void *vlag2,
void *wlag1,
void *wlag2,
50 const dim3 nthrds(1024, 1, 1);
51 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
54 hipLaunchKernelGGL(HIP_KERNEL_NAME( sumab_kernel<real> ),
60 *ab1, *ab2, *ab3, *nab, *n);
65 void *abx2,
void *aby2,
void *abz2,
66 void *bfx,
void *bfy,
void *bfz,
69 const dim3 nthrds(1024, 1, 1);
70 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
72 hipLaunchKernelGGL(HIP_KERNEL_NAME( makeext_kernel<real> ),
77 *rho, *ab1, *ab2, *ab3, *n);
85 const dim3 nthrds(1024, 1, 1);
86 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
88 hipLaunchKernelGGL(HIP_KERNEL_NAME( scalar_makeext_kernel<real> ),
91 *rho, *ext1, *ext2, *ext3, *n);
96 void *vlag2,
void *wlag1,
void *wlag2,
97 void *bfx,
void *bfy,
void *bfz,
98 void *
u,
void *
v,
void *
w,
void *B,
100 real *bd3,
real *bd4,
int *nbd,
int *n) {
102 const dim3 nthrds(1024, 1, 1);
103 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
105 hipLaunchKernelGGL(HIP_KERNEL_NAME( makebdf_kernel<real> ),
111 *rho, *
dt, *bd2, *bd3, *bd4, *nbd, *n);
120 const dim3 nthrds(1024, 1, 1);
121 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
123 hipLaunchKernelGGL(HIP_KERNEL_NAME( scalar_makebdf_kernel<real> ),
126 (
real *) s, (
real *) B, *rho, *
dt, *bd2, *bd3,
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ w
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dt
void rhs_maker_bdf_hip(void *ulag1, void *ulag2, void *vlag1, void *vlag2, void *wlag1, void *wlag2, void *bfx, void *bfy, void *bfz, void *u, void *v, void *w, void *B, real *rho, real *dt, real *bd2, real *bd3, real *bd4, int *nbd, int *n)
void rhs_maker_sumab_hip(void *u, void *v, void *w, void *uu, void *vv, void *ww, void *ulag1, void *ulag2, void *vlag1, void *vlag2, void *wlag1, void *wlag2, real *ab1, real *ab2, real *ab3, int *nab, int *n)
void rhs_maker_ext_hip(void *abx1, void *aby1, void *abz1, void *abx2, void *aby2, void *abz2, void *bfx, void *bfy, void *bfz, real *rho, real *ab1, real *ab2, real *ab3, int *n)
void scalar_rhs_maker_bdf_hip(void *s_lag, void *s_laglag, void *fs, void *s, void *B, real *rho, real *dt, real *bd2, real *bd3, real *bd4, int *nbd, int *n)
void scalar_rhs_maker_ext_hip(void *fs_lag, void *fs_laglag, void *fs, real *rho, real *ext1, real *ext2, real *ext3, int *n)