60 void cuda_copy(
void *a,
void *b,
int *n, cudaStream_t strm) {
62 cudaMemcpyDeviceToDevice, strm));
70 int *n,
int *m, cudaStream_t strm) {
72 const dim3 nthrds(1024, 1, 1);
73 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
86 int *n,
int *m, cudaStream_t strm) {
88 const dim3 nthrds(1024, 1, 1);
89 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
101 int *n,
int *m, cudaStream_t strm) {
103 const dim3 nthrds(1024, 1, 1);
104 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
116 int *n,
int *m, cudaStream_t strm) {
118 const dim3 nthrds(1024, 1, 1);
119 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
131 void *facet,
int *n1,
int *n2,
int *lx,
132 int *ly,
int *lz,
int *m,
135 const dim3 nthrds(1024, 1, 1);
136 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
139 ((
real *) a, (
real *) b, (
int *)
mask, (
int *) facet, *n1, *n2, *lx,
149 int *n,
int *m, cudaStream_t strm) {
164 int *n,
int *m, cudaStream_t strm) {
166 const dim3 nthrds(1024, 1, 1);
167 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
178 int *n,
int *m, cudaStream_t strm) {
180 const dim3 nthrds(1024, 1, 1);
181 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
195 const dim3 nthrds(1024, 1, 1);
196 const dim3 nblcks(((*mask_size) + 1024 - 1) / 1024, 1, 1);
199 ((
real*)a, *c, *size,
mask, *mask_size);
215 const dim3 nthrds(1024, 1, 1);
216 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
228 const dim3 nthrds(1024, 1, 1);
229 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
242 const dim3 nthrds(1024, 1, 1);
243 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
255 const dim3 nthrds(1024, 1, 1);
256 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
269 const dim3 nthrds(1024, 1, 1);
270 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
283 const dim3 nthrds(1024, 1, 1);
284 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
299 const dim3 nthrds(1024, 1, 1);
300 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
303 ((
real *) a, *min_val, *max_val, *n);
313 const dim3 nthrds(1024, 1, 1);
314 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
327 const dim3 nthrds(1024, 1, 1);
328 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
341 const dim3 nthrds(1024, 1, 1);
342 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
355 void cuda_add2(
void *a,
void *b,
int *n, cudaStream_t strm) {
357 const dim3 nthrds(1024, 1, 1);
358 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
370 void cuda_add3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
372 const dim3 nthrds(1024, 1, 1);
373 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
384 void cuda_add4(
void *a,
void *b,
void *c,
void *d,
int *n,
387 const dim3 nthrds(1024, 1, 1);
388 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
402 const dim3 nthrds(1024, 1, 1);
403 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
418 const dim3 nthrds(1024, 1, 1);
419 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
436 const dim3 nthrds(1024, 1, 1);
437 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
452 const dim3 nthrds(1024, 1, 1);
453 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
469 const dim3 nthrds(1024, 1, 1);
470 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
484 real *c3,
int *n, cudaStream_t strm) {
486 const dim3 nthrds(1024, 1, 1);
487 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
501 real *c2,
real *c3,
real *c4,
int *n, cudaStream_t strm) {
503 const dim3 nthrds(1024, 1, 1);
504 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
508 *c1, *c2, *c3, *c4, *n);
519 const dim3 nthrds(1024, 1, 1);
520 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
532 const dim3 nthrds(1024, 1, 1);
533 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
544 void cuda_invcol3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
546 const dim3 nthrds(1024, 1, 1);
547 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
558 void cuda_col2(
void *a,
void *b,
int *n, cudaStream_t strm) {
560 const dim3 nthrds(1024, 1, 1);
561 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
571 void cuda_col3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
573 const dim3 nthrds(1024, 1, 1);
574 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
585 void cuda_subcol3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
587 const dim3 nthrds(1024, 1, 1);
588 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
600 void cuda_sub2(
void *a,
void *b,
int *n, cudaStream_t strm) {
602 const dim3 nthrds(1024, 1, 1);
603 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
614 void cuda_sub3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
616 const dim3 nthrds(1024, 1, 1);
617 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
628 void cuda_addcol3(
void *a,
void *b,
void *c,
int *n, cudaStream_t strm) {
630 const dim3 nthrds(1024, 1, 1);
631 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
645 const dim3 nthrds(1024, 1, 1);
646 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
660 const dim3 nthrds(1024, 1, 1);
661 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
673 void *v1,
void *v2,
void *v3,
int *n,
676 const dim3 nthrds(1024, 1, 1);
677 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
690 void *v1,
void *v2,
void *v3,
691 void *w1,
void *w2,
void *
w3,
692 int *n, cudaStream_t strm) {
694 const dim3 nthrds(1024, 1, 1);
695 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
730 int n,
const cudaStream_t stream) {
736 cudaMemcpyDeviceToHost, stream));
737 cudaStreamSynchronize(stream);
739 if (
sizeof(
real) ==
sizeof(
float)) {
740 nvshmemx_float_sum_reduce_on_stream(NVSHMEM_TEAM_WORLD,
742 (
float *) bufred_d, n, stream);
744 else if (
sizeof(
real) ==
sizeof(
double)) {
745 nvshmemx_double_sum_reduce_on_stream(NVSHMEM_TEAM_WORLD,
747 (
double *) bufred_d, n, stream);
751 sizeof(
real)*n, cudaMemcpyDeviceToHost, stream));
752 cudaStreamSynchronize(stream);
754 cudaStreamSynchronize(stream);
758 cudaMemcpyDeviceToHost, stream));
759 cudaStreamSynchronize(stream);
767 int n,
const cudaStream_t stream) {
773 cudaMemcpyDeviceToHost, stream));
774 cudaStreamSynchronize(stream);
776 if (
sizeof(
real_xp) ==
sizeof(
float)) {
777 nvshmemx_float_sum_reduce_on_stream(NVSHMEM_TEAM_WORLD,
779 (
float *) bufred_d, n, stream);
781 else if (
sizeof(
real_xp) ==
sizeof(
double)) {
782 nvshmemx_double_sum_reduce_on_stream(NVSHMEM_TEAM_WORLD,
784 (
double *) bufred_d, n, stream);
788 sizeof(
real_xp)*n, cudaMemcpyDeviceToHost, stream));
789 cudaStreamSynchronize(stream);
791 cudaStreamSynchronize(stream);
795 cudaMemcpyDeviceToHost, stream));
796 cudaStreamSynchronize(stream);
804 int n,
const cudaStream_t stream) {
810 cudaMemcpyDeviceToHost, stream));
811 cudaStreamSynchronize(stream);
813 if (
sizeof(
real) ==
sizeof(
float)) {
814 nvshmemx_float_max_reduce_on_stream(NVSHMEM_TEAM_WORLD,
816 (
float *) bufred_d, n, stream);
818 else if (
sizeof(
real) ==
sizeof(
double)) {
819 nvshmemx_double_max_reduce_on_stream(NVSHMEM_TEAM_WORLD,
821 (
double *) bufred_d, n, stream);
825 sizeof(
real)*n, cudaMemcpyDeviceToHost, stream));
826 cudaStreamSynchronize(stream);
828 cudaStreamSynchronize(stream);
832 cudaMemcpyDeviceToHost, stream));
833 cudaStreamSynchronize(stream);
841 int n,
const cudaStream_t stream) {
847 cudaMemcpyDeviceToHost, stream));
848 cudaStreamSynchronize(stream);
850 if (
sizeof(
real) ==
sizeof(
float)) {
851 nvshmemx_float_min_reduce_on_stream(NVSHMEM_TEAM_WORLD,
853 (
float *) bufred_d, n, stream);
855 else if (
sizeof(
real) ==
sizeof(
double)) {
856 nvshmemx_double_min_reduce_on_stream(NVSHMEM_TEAM_WORLD,
858 (
double *) bufred_d, n, stream);
862 sizeof(
real)*n, cudaMemcpyDeviceToHost, stream));
863 cudaStreamSynchronize(stream);
865 cudaStreamSynchronize(stream);
869 cudaMemcpyDeviceToHost, stream));
870 cudaStreamSynchronize(stream);
881 const dim3 nthrds(1024, 1, 1);
882 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
883 const int nb = ((*n) + 1024 - 1)/ 1024;
894 cudaMemcpyDeviceToHost, stream));
895 cudaStreamSynchronize(stream);
909 const dim3 nthrds(1024, 1, 1);
910 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
911 const int nb = ((*n) + 1024 - 1)/ 1024;
935 cudaStream_t stream){
940 const int nt = 1024/pow2;
941 const dim3 nthrds(pow2, nt, 1);
942 const dim3 nblcks(((*n)+nt - 1)/nt, 1, 1);
943 const int nb = ((*n) + nt - 1)/nt;
968 const dim3 nthrds(1024, 1, 1);
969 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
970 const int nb = ((*n) + 1024 - 1)/ 1024;
976 <<<nblcks, nthrds, 0, stream>>>((
real *) a,
997 const dim3 nthrds(1024, 1, 1);
998 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
999 const int nb = ((*n) + 1024 - 1)/ 1024;
1005 <<<nblcks, nthrds, 0, stream>>>((
real *) a,
1025 const dim3 nthrds(1024, 1, 1);
1026 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1027 const int nb = ((*n) + 1024 - 1)/ 1024;
1032 <<<nblcks, nthrds, 0, stream>>>((
real *) a,
1052 const dim3 nthrds(1024, 1, 1);
1053 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1054 const int nb = ((*n) + 1024 - 1)/ 1024;
1059 <<<nblcks, nthrds, 0, stream>>>((
real *) a, *ninf,
1067 int nel = (int) (
redbuf.size /
sizeof(
real));
1081 const dim3 nthrds(1024, 1, 1);
1082 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1083 const int nb = ((*n) + 1024 - 1)/ 1024;
1088 <<<nblcks, nthrds, 0, stream>>>((
real *) a, *pinf,
1096 int nel = (int) (
redbuf.size /
sizeof(
real));
1110 const dim3 nthrds(1024, 1, 1);
1111 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1112 const int nb = ((*n) + 1024 - 1)/ 1024;
1113 const real zero = 0.0;
1118 <<<nblcks, nthrds, 0, stream>>>((
real *) a,
1126 int nel = (int) (
redbuf.size /
sizeof(
real));
1141 const dim3 nthrds(1024, 1, 1);
1142 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1145 <<<nblcks, nthrds,0, stream>>>((
real *) a, * n);
1159 const dim3 nthrds(1024, 1, 1);
1160 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1173 const dim3 nthrds(1024, 1, 1);
1174 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1187 const dim3 nthrds(1024, 1, 1);
1188 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1191 ((
real *)a, *c, *n);
1201 const dim3 nthrds(1024, 1, 1);
1202 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1215 const dim3 nthrds(1024, 1, 1);
1216 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1229 const dim3 nthrds(1024, 1, 1);
1230 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1243 const dim3 nthrds(1024, 1, 1);
1244 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1256 const dim3 nthrds(1024, 1, 1);
1257 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1269 void cuda_iadd(
void *a,
int *c,
int *n, cudaStream_t stream) {
1271 const dim3 nthrds(1024, 1, 1);
1272 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1275 ((
int *) a, *c, *n);
static opencl_buffer_t redbuf
void cuda_buffer_reserve(cuda_buffer_t *buf, size_t size)
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ w
__global__ void const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
struct cuda_buffer cuda_buffer_t
#define CUDA_BUFFER_INIT_SYMM
__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 addcol4_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const int n)
__global__ void cwrap_kernel(T *__restrict__ a, const T min_val, const T max_val, const int n)
__global__ void pwmin_vec3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void reduce_kernel(T *bufred, const int n)
__global__ void cdiv2_kernel(T *__restrict__ a, T *__restrict__ b, const T c, const int n)
__global__ void invcol2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void add2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void add4s3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const T c1, const T c2, const T c3, const int n)
__global__ void masked_scatter_copy_aligned_kernel(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void masked_atomic_reduction_kernel(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int m)
__global__ void pwmax_vec3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void glsc2_kernel(const T *a, const T *b, T_acc *buf_h, const int n)
__global__ void addcol3s2_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T s, const int n)
__global__ void cfill_mask_kernel(T *__restrict__ a, const T c, const int size, int *__restrict__ mask, const int mask_size)
__global__ void cdiv_kernel(T *__restrict__ a, const T c, const int n)
__global__ void masked_copy_kernel_aligned(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void face_masked_gather_copy_kernel(T *__restrict__ a, const T *__restrict__ b, const int *__restrict__ mask, const int *__restrict__ facet, const int n1, const int n2, const int lx, const int ly, const int lz, const int n_mask)
__global__ void masked_gather_copy_aligned_kernel(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void pwmax_sca2_kernel(T *__restrict__ a, const T c, const int n)
__global__ void reduce_max_kernel(T *bufred, const T ninf, const int n)
__global__ void pwmin_vec2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void add3s2_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T c1, const T c2, const int n)
__global__ void glsum_kernel(const T *a, T_acc *buf_h, const int n)
__global__ void add2s1_kernel(T *__restrict__ a, const T *__restrict__ b, const T c1, const int n)
__global__ void add5s4_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const T *__restrict__ e, const T c1, const T c2, const T c3, const T c4, const int n)
#define MASKED_ATOMIC_RED_BLOCK
__global__ void masked_gather_copy_kernel(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void add2s2_many_kernel(T *__restrict__ x, const T **p, const T *alpha, const int p_cur, const int n)
__global__ void glsc3_many_kernel(const T *a, const T **b, const T *c, T_acc *buf_h, const int j, const int n)
__global__ void pwmax_vec2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void cmult_kernel(T *__restrict__ a, const T c, const int n)
__global__ void addcol3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void pwmin_sca3_kernel(T *__restrict__ a, const T *__restrict b, const T c, const int n)
__global__ void pwmax_sca3_kernel(T *__restrict__ a, const T *__restrict b, const T c, const int n)
__global__ void power_kernel(T *__restrict__ ap, const T *__restrict__ a, const T p, const int n)
__global__ void col2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void masked_copy_kernel_0(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void sqrt_inplace_kernel(T *__restrict__ a, const int n)
__global__ void col3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void sub2_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
__global__ void glmin_kernel(const T *a, const T pinf, T *buf_h, const int n)
__global__ void cmult2_kernel(T *__restrict__ a, T *__restrict__ b, const T c, const int n)
__global__ void pwmin_sca2_kernel(T *__restrict__ a, const T c, const int n)
__global__ void sub3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void glsubnorm2_kernel(const T *a, const T *b, T_acc *buf_h, const int n)
__global__ void glsc3_reduce_kernel(T_acc *bufred, const int n, const int j)
__global__ void add2s2_kernel(T *__restrict__ a, const T *__restrict__ b, const T c1, const int n)
__global__ void vdot3_kernel(T *__restrict__ dot, const T *__restrict__ u1, const T *__restrict__ u2, const T *__restrict__ u3, const T *__restrict__ v1, const T *__restrict__ v2, const T *__restrict__ v3, const int n)
__global__ void invcol1_kernel(T *__restrict__ a, const int n)
__global__ void add3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void glmax_kernel(const T *a, const T ninf, T *buf_h, const int n)
__global__ void vlsc3_kernel(const T *a, const T *b, const T *c, T *buf_h, const int n)
__global__ void add4_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const int n)
__global__ void cfill_kernel(T *__restrict__ a, const T c, const int n)
__global__ void masked_scatter_copy_kernel(T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask)
__global__ void glsc3_kernel(const T *a, const T *b, const T *c, T_acc *buf_h, const int n)
__global__ void reduce_min_kernel(T *bufred, const T pinf, const int n)
__global__ void vcross_kernel(T *__restrict__ u1, T *__restrict__ u2, T *__restrict__ u3, const T *__restrict__ v1, const T *__restrict__ v2, const T *__restrict__ v3, const T *__restrict__ w1, const T *__restrict__ w2, const T *__restrict__ w3, const int n)
__global__ void addsqr2s2_kernel(T *__restrict__ a, const T *__restrict__ b, const T c1, const int n)
__global__ void cadd2_kernel(T *__restrict__ a, T *__restrict__ b, const T c, const int n)
__global__ void absval_kernel(T *__restrict__ a, const int n)
__global__ void invcol3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void subcol3_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n)
__global__ void cadd_kernel(T *__restrict__ a, const T c, const int n)
__global__ void glamax_kernel(const T *a, T *buf_h, const int n)
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_global_reduce_min(real *bufred, void *bufred_d, int n, const cudaStream_t stream)
void cuda_pwmax_sca3(void *a, void *b, real *c, int *n, cudaStream_t stream)
void cuda_sqrt_inplace(void *a, int *n, cudaStream_t strm)
void cuda_addcol4(void *a, void *b, void *c, void *d, int *n, cudaStream_t strm)
void cuda_add2s2(void *a, void *b, real *c1, int *n, cudaStream_t strm)
void cuda_vdot3(void *dot, void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, int *n, cudaStream_t strm)
void cuda_add3s2(void *a, void *b, void *c, real *c1, real *c2, int *n, cudaStream_t strm)
void cuda_face_masked_gather_copy(void *a, void *b, void *mask, void *facet, int *n1, int *n2, int *lx, int *ly, int *lz, int *m, cudaStream_t strm)
void cuda_global_reduce_add(real *bufred, void *bufred_d, int n, const cudaStream_t stream)
void cuda_addcol3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_pwmin_vec2(void *a, void *b, int *n, cudaStream_t stream)
void cuda_pwmax_vec3(void *a, void *b, void *c, int *n, cudaStream_t stream)
void cuda_power(void *ap, void *a, real *p, int *n, cudaStream_t strm)
real cuda_glmin(void *a, real *pinf, int *n, cudaStream_t stream)
void cuda_cmult2(void *a, void *b, real *c, int *n, cudaStream_t strm)
void cuda_add2s1(void *a, void *b, real *c1, int *n, cudaStream_t strm)
void cuda_col3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_masked_copy_0(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_add2s2_many(void *x, void **p, void *alpha, int *j, int *n, cudaStream_t strm)
void cuda_sub3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_copy(void *a, void *b, int *n, cudaStream_t strm)
void cuda_cfill_mask(void *a, real *c, int *size, int *mask, int *mask_size, cudaStream_t strm)
real_xp cuda_glsc3(void *a, void *b, void *c, int *n, cudaStream_t stream)
void cuda_masked_copy_aligned(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_invcol2(void *a, void *b, int *n, cudaStream_t strm)
void cuda_global_reduce_add_xp(real_xp *bufred, void *bufred_d, int n, const cudaStream_t stream)
void cuda_pwmax_sca2(void *a, real *c, int *n, cudaStream_t stream)
void cuda_col2(void *a, void *b, int *n, cudaStream_t strm)
void cuda_masked_scatter_copy(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_add2(void *a, void *b, int *n, cudaStream_t strm)
void cuda_redbuf_check_alloc(int nb)
void cuda_cmult(void *a, real *c, int *n, cudaStream_t strm)
void cuda_add4(void *a, void *b, void *c, void *d, int *n, cudaStream_t strm)
void cuda_masked_scatter_copy_aligned(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_sub2(void *a, void *b, int *n, cudaStream_t strm)
void cuda_redbuf_check_alloc_xp(int nb)
void cuda_invcol3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_vcross(void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, void *w1, void *w2, void *w3, int *n, cudaStream_t strm)
real_xp cuda_glsc2(void *a, void *b, int *n, cudaStream_t stream)
void cuda_masked_gather_copy(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
real cuda_vlsc3(void *u, void *v, void *w, int *n, cudaStream_t stream)
void cuda_pwmin_sca3(void *a, void *b, real *c, int *n, cudaStream_t stream)
void cuda_cadd2(void *a, void *b, real *c, int *n, cudaStream_t strm)
void cuda_addsqr2s2(void *a, void *b, real *c1, int *n, cudaStream_t strm)
real_xp cuda_glsum(void *a, int *n, cudaStream_t stream)
void cuda_add3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_addcol3s2(void *a, void *b, void *c, real *s, int *n, cudaStream_t strm)
void cuda_cwrap(void *a, real *min_val, real *max_val, int *n, cudaStream_t strm)
void cuda_pwmin_sca2(void *a, real *c, int *n, cudaStream_t stream)
void cuda_cfill(void *a, real *c, int *n, cudaStream_t strm)
void cuda_absval(void *a, int *n, cudaStream_t stream)
void cuda_rzero(void *a, int *n, cudaStream_t strm)
void cuda_cdiv2(void *a, void *b, real *c, int *n, cudaStream_t strm)
void cuda_cdiv(void *a, real *c, int *n, cudaStream_t strm)
real cuda_glamax(void *a, int *n, cudaStream_t stream)
void cuda_global_reduce_max(real *bufred, void *bufred_d, int n, const cudaStream_t stream)
void cuda_iadd(void *a, int *c, int *n, cudaStream_t stream)
void cuda_masked_gather_copy_aligned(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_pwmax_vec2(void *a, void *b, int *n, cudaStream_t stream)
void cuda_glsc3_many(real_xp *h, void *w, void *v, void *mult, int *j, int *n, cudaStream_t stream)
real_xp cuda_glsubnorm2(void *a, void *b, int *n, cudaStream_t stream)
void cuda_masked_atomic_reduction(void *a, void *b, void *mask, int *n, int *m, cudaStream_t strm)
void cuda_add5s4(void *a, void *b, void *c, void *d, void *e, real *c1, real *c2, real *c3, real *c4, int *n, cudaStream_t strm)
void cuda_invcol1(void *a, int *n, cudaStream_t strm)
void cuda_radd(void *a, real *c, int *n, cudaStream_t strm)
void cuda_add4s3(void *a, void *b, void *c, void *d, real *c1, real *c2, real *c3, int *n, cudaStream_t strm)
real cuda_glmax(void *a, real *ninf, int *n, cudaStream_t stream)
void cuda_subcol3(void *a, void *b, void *c, int *n, cudaStream_t strm)
void cuda_pwmin_vec3(void *a, void *b, void *c, int *n, cudaStream_t stream)
Object for handling masks in Neko.