35#include <hip/hip_runtime.h>
42 ({ __typeof__ (a) _a = (a); \
43 __typeof__ (b) _b = (b); \
51 void *
A,
void *
Bt,
void *
Ct,
int *nel) {
59 hipLaunchKernelGGL(HIP_KERNEL_NAME(tnsr3d_kernel<real, N>), \
61 (hipStream_t) glb_cmd_queue, \
64 (real *) A, (real *) Bt, (real *) Ct); \
65 HIP_CHECK(hipGetLastError()); \
94 void *
A,
void *
Bt,
void *
Ct,
int * elements,
int* n_points) {
101 hipLaunchKernelGGL(HIP_KERNEL_NAME(tnsr3d_el_kernel<real, N>), \
103 (hipStream_t) glb_cmd_queue, \
106 (real *) A, (real *) Bt, (real *) Ct, \
107 (int *) elements, *n_points); \
108 HIP_CHECK(hipGetLastError()); \
__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 dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
void hip_tnsr3d(void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *nel)
void hip_tnsr3d_el_list(void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *elements, int *n_points)