35 #include <hip/hip_runtime.h>
46 void *arr2,
int * l2,
real * f2,
47 int * nx,
int * nel, hipStream_t stream) {
49 const dim3 nthrds(1024, 1, 1);
50 const dim3 nblcks((*nel), 1, 1);
53 hipLaunchKernelGGL(HIP_KERNEL_NAME(schwarz_extrude_kernel<real,NX>), \
54 nblcks, nthrds, 0, stream, \
55 (real *) arr1,* l1, * f1, \
56 (real *) arr2, *l2, *f2); \
57 HIP_CHECK(hipGetLastError()); \
78 fprintf(stderr, __FILE__
": size not supported: %d\n", *nx);
87 const dim3 nthrds(1024, 1, 1);
88 const dim3 nblcks((*nel), 1, 1);
90 hipLaunchKernelGGL(HIP_KERNEL_NAME(schwarz_toext3d_kernel<real>),
99 const dim3 nthrds(1024, 1, 1);
100 const dim3 nblcks((*nel), 1, 1);
101 hipLaunchKernelGGL(HIP_KERNEL_NAME(schwarz_toreg3d_kernel<real>),
102 nblcks, nthrds, 0, stream,
void hip_schwarz_toext3d(void *a, void *b, int *nx, int *nel, hipStream_t stream)
void hip_schwarz_extrude(void *arr1, int *l1, real *f1, void *arr2, int *l2, real *f2, int *nx, int *nel, hipStream_t stream)
void hip_schwarz_toreg3d(void *b, void *a, int *nx, int *nel, hipStream_t stream)