47 const dim3 nthrds(1024, 1, 1);
48 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
51 <<<nblcks, nthrds, 0, strm>>>((
int *) msk, (
real *)
x, *m);
59 void *z,
int *m, cudaStream_t strm) {
61 const dim3 nthrds(1024, 1, 1);
62 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
65 <<<nblcks, nthrds, 0, strm>>>((
int *) msk,
__global__ void const T *__restrict__ x
__global__ void zero_dirichlet_apply_vector_kernel(const int *__restrict__ msk, T *__restrict__ x, T *__restrict__ y, T *__restrict__ z, const int m)
__global__ void zero_dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const int m)
void cuda_zero_dirichlet_apply_scalar(void *msk, void *x, int *m, cudaStream_t strm)
void cuda_zero_dirichlet_apply_vector(void *msk, void *x, void *y, void *z, int *m, cudaStream_t strm)