71 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
85 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
99 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
103 (
int *) mask, *n, *m);
136 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
150 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
164 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
179 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
193 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
210 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
225 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
240 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
255 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
271 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
288 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
292 (
real *) alpha, *
j, *n);
305 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
322 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
338 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
352 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
366 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
380 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
394 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
409 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
423 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
438 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
453 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
466 void *v1,
void *v2,
void *v3,
int *n) {
469 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
484 void *v1,
void *v2,
void *v3,
485 void *w1,
void *w2,
void *
w3,
int *n) {
488 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
515 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
516 const int nb = ((*n) + 1024 - 1)/ 1024;
549 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
550 const int nb = ((*n) + 1024 - 1)/ 1024;
584 if (
sizeof(
real) ==
sizeof(
float)) {
589 else if (
sizeof(
real) ==
sizeof(
double)) {
619 const int nt = 1024/
pow2;
622 const int nb = ((*n) + nt - 1)/nt;
658 if (
sizeof(
real) ==
sizeof(
float)) {
663 else if (
sizeof(
real) ==
sizeof(
double)) {
688 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
689 const int nb = ((*n) + 1024 - 1)/ 1024;
725 if (
sizeof(
real) ==
sizeof(
float)) {
730 else if (
sizeof(
real) ==
sizeof(
double)) {
758 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
759 const int nb = ((*n) + 1024 - 1)/ 1024;
795 if (
sizeof(
real) ==
sizeof(
float)) {
800 else if (
sizeof(
real) ==
sizeof(
double)) {
829 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
848 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
863 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
878 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
893 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
908 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
923 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
938 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
953 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
__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__ x
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ w3
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
void device_mpi_allreduce(void *buf_d, void *buf, int count, int nbytes, int op)
void device_nccl_allreduce(void *sbuf_d, void *rbuf_d, int count, int nbytes, int op, void *stream)
void cuda_masked_red_copy(void *a, void *b, void *mask, int *n, int *m)
void cuda_absval(void *a, int *n)
void cuda_invcol1(void *a, int *n)
void cuda_add2s2_many(void *x, void **p, void *alpha, int *j, int *n)
void cuda_cadd2(void *a, void *b, real *c, int *n)
void cuda_pwmax_sca3(void *a, void *b, real *c, int *n)
void cuda_pwmin_vec3(void *a, void *b, void *c, int *n)
real cuda_vlsc3(void *u, void *v, void *w, int *n)
void cuda_add2s2(void *a, void *b, real *c1, int *n)
void cuda_masked_copy(void *a, void *b, void *mask, int *n, int *m)
void cuda_add3(void *a, void *b, void *c, int *n)
void cuda_col2(void *a, void *b, int *n)
void cuda_glsc3_many(real *h, void *w, void *v, void *mult, int *j, int *n)
void cuda_add4(void *a, void *b, void *c, void *d, int *n)
void cuda_vdot3(void *dot, void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, int *n)
void cuda_pwmin_sca3(void *a, void *b, real *c, int *n)
void cuda_addcol3(void *a, void *b, void *c, int *n)
void cuda_pwmax_sca2(void *a, real *c, int *n)
void cuda_subcol3(void *a, void *b, void *c, int *n)
void cuda_cmult(void *a, real *c, int *n)
void cuda_addsqr2s2(void *a, void *b, real *c1, int *n)
void cuda_add2s1(void *a, void *b, real *c1, int *n)
real cuda_glsum(void *a, int *n)
real cuda_glsc2(void *a, void *b, int *n)
void cuda_add3s2(void *a, void *b, void *c, real *c1, real *c2, int *n)
void cuda_rzero(void *a, int *n)
void cuda_masked_atomic_reduction(void *a, void *b, void *mask, int *n, int *m)
void cuda_pwmin_sca2(void *a, real *c, int *n)
void cuda_pwmax_vec3(void *a, void *b, void *c, int *n)
void cuda_addcol4(void *a, void *b, void *c, void *d, int *n)
void cuda_add2(void *a, void *b, int *n)
void cuda_copy(void *a, void *b, int *n)
void cuda_pwmax_vec2(void *a, void *b, int *n)
void cuda_cfill_mask(void *a, real *c, int *size, int *mask, int *mask_size)
void cuda_invcol2(void *a, void *b, int *n)
void cuda_pwmin_vec2(void *a, void *b, int *n)
void cuda_col3(void *a, void *b, void *c, int *n)
void cuda_cfill(void *a, real *c, int *n)
void cuda_cadd(void *a, real *c, int *n)
void cuda_sub2(void *a, void *b, int *n)
void cuda_vcross(void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, void *w1, void *w2, void *w3, int *n)
real cuda_glsc3(void *a, void *b, void *c, int *n)
void cuda_cmult2(void *a, void *b, real *c, int *n)
void cuda_sub3(void *a, void *b, void *c, int *n)