35 #ifndef __BC_NO_SLIP_WALL_KERNEL__
36 #define __BC_NO_SLIP_WALL_KERNEL__
38 #include <hip/hip_runtime.h>
43 template<
typename T >
48 const int idx = blockIdx.x * blockDim.x + threadIdx.x;
49 const int str = blockDim.x * gridDim.x;
51 for (
int i = (idx + 1);
i < m;
i += str) {
52 const int k = (msk[
i] - 1);
60 template<
typename T >
67 const int idx = blockIdx.x * blockDim.x + threadIdx.x;
68 const int str = blockDim.x * gridDim.x;
70 for (
int i = (idx + 1);
i < m;
i += str) {
71 const int k = (msk[
i] - 1);
__global__ void const T *__restrict__ x
__global__ void no_slip_wall_apply_vector_kernel(const int *__restrict__ msk, T *__restrict__ x, T *__restrict__ y, T *__restrict__ z, const int m)
__global__ void no_slip_wall_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const int m)