35#include <hip/hip_runtime.h>
55 void hip_copy(
void *a,
void *b,
int *n, hipStream_t strm) {
62 const dim3 nthrds(1024, 1, 1);
63 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
66 nblcks, nthrds, 0, strm,
72 hipMemcpyDeviceToDevice, strm));
79 int *n,
int *m, hipStream_t strm) {
81 const dim3 nthrds(1024, 1, 1);
82 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
85 nblcks, nthrds, 0, strm, (
real *) a,
96 int *n,
int *m, hipStream_t strm) {
98 const dim3 nthrds(1024, 1, 1);
99 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
102 nblcks, nthrds, 0, strm, (
real *) a,
113 int *n,
int *m, hipStream_t strm) {
115 const dim3 nthrds(1024, 1, 1);
116 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
119 nblcks, nthrds, 0, strm, (
real *) a,
129 int *n,
int *m, hipStream_t strm) {
131 const dim3 nthrds(1024, 1, 1);
132 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
135 nblcks, nthrds, 0, strm, (
real *) a,
145 void *facet,
int *n1,
int *n2,
int *lx,
146 int *ly,
int *lz,
int *m,
149 const dim3 nthrds(1024, 1, 1);
150 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
153 nblcks, nthrds, 0, strm, (
real *) a, (
real *) b,
154 (
int *)
mask, (
int *) facet, *n1, *n2, *lx, *ly, *lz,
165 int *n,
int *m, hipStream_t strm) {
167 const dim3 nthrds(1024, 1, 1);
168 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
171 nblcks, nthrds, 0, strm, (
real *) a,
182 int *n,
int *m, hipStream_t strm) {
184 const dim3 nthrds(1024, 1, 1);
185 const dim3 nblcks(((*m)+1024 - 1)/ 1024, 1, 1);
188 nblcks, nthrds, 0, strm, (
real *) a,
199 int *n,
int *m, hipStream_t strm) {
206 nblcks, nthrds, 0, strm, (
real *) a,
219 const dim3 nthrds(1024, 1, 1);
220 const dim3 nblcks(((*mask_size) + 1024 - 1) / 1024, 1, 1);
223 nblcks, nthrds, 0, strm, (
real*)a,
224 *c, *size, (
int*)
mask, *mask_size);
237 const dim3 nthrds(1024, 1, 1);
238 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
241 nblcks, nthrds, 0, strm,
254 const dim3 nthrds(1024, 1, 1);
255 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
258 nblcks, nthrds, 0, strm, (
real *) a, *c, *n);
268 const dim3 nthrds(1024, 1, 1);
269 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
272 nblcks, nthrds, 0, strm, (
real *) a,(
real *) b, *c, *n);
282 const dim3 nthrds(1024, 1, 1);
283 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
286 nblcks, nthrds, 0, strm, (
real *) a, *c, *n);
296 const dim3 nthrds(1024, 1, 1);
297 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
300 nblcks, nthrds, 0, strm, (
real *) a,(
real *) b, *c, *n);
310 const dim3 nthrds(1024, 1, 1);
311 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
314 nblcks, nthrds, 0, strm, (
real *) a, *c, *n);
324 const dim3 nthrds(1024, 1, 1);
325 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
328 nblcks, nthrds, 0, strm, (
real *) a, (
real *) b, *c, *n);
339 const dim3 nthrds(1024, 1, 1);
340 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
343 nblcks, nthrds, 0, strm, (
real *) a,
344 *min_val, *max_val, *n);
353 const dim3 nthrds(1024, 1, 1);
354 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
357 nblcks, nthrds, 0, strm, (
real *) a, *n);
366 const dim3 nthrds(1024, 1, 1);
367 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
370 nblcks, nthrds, 0, strm,
380 const dim3 nthrds(1024, 1, 1);
381 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
385 nblcks, nthrds, 0, strm, (
real *) a, *c, *n);
395 void hip_add2(
void *a,
void *b,
int *n, hipStream_t strm) {
397 const dim3 nthrds(1024, 1, 1);
398 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
401 nblcks, nthrds, 0, strm, (
real *) a, (
real *) b, *n);
410 void hip_add3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
412 const dim3 nthrds(1024, 1, 1);
413 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
416 nblcks, nthrds, 0, strm, (
real *) a,
425 void hip_add4(
void *a,
void *b,
void *c,
void *d,
int *n, hipStream_t strm) {
427 const dim3 nthrds(1024, 1, 1);
428 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
431 nblcks, nthrds, 0, strm, (
real *) a,
443 const dim3 nthrds(1024, 1, 1);
444 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
447 nblcks, nthrds, 0, strm, (
real *) a,
448 (
real *) b, *c1, *n);
459 const dim3 nthrds(1024, 1, 1);
460 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
463 nblcks, nthrds, 0, strm, (
real *) a, (
real *) b,
477 const dim3 nthrds(1024, 1, 1);
478 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
481 nblcks, nthrds, 0, strm, (
real *)
x,
482 (
const real **) p, (
real *) alpha, *
j, *n);
494 const dim3 nthrds(1024, 1, 1);
495 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
498 nblcks, nthrds, 0, strm, (
real *) a,
499 (
real *) b, *c1, *n);
511 const dim3 nthrds(1024, 1, 1);
512 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
515 nblcks, nthrds, 0, strm, (
real *) a,
516 (
real *) b, (
real *) c, *c1, *c2, *n);
526 real *c3,
int *n, hipStream_t strm) {
528 const dim3 nthrds(1024, 1, 1);
529 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
532 nblcks, nthrds, 0, strm, (
real *) a,
543 real *c2,
real *c3,
real *c4,
int *n, hipStream_t strm) {
545 const dim3 nthrds(1024, 1, 1);
546 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
549 nblcks, nthrds, 0, strm, (
real *) a,
551 *c1, *c2, *c3, *c4, *n);
561 const dim3 nthrds(1024, 1, 1);
562 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
565 nblcks, nthrds, 0, strm, (
real *) a, *n);
575 const dim3 nthrds(1024, 1, 1);
576 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
579 nblcks, nthrds, 0, strm, (
real *) a, (
real *) b, *n);
587 void hip_invcol3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
589 const dim3 nthrds(1024, 1, 1);
590 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
593 nblcks, nthrds, 0, strm, (
real *) a,
602 void hip_col2(
void *a,
void *b,
int *n, hipStream_t strm) {
604 const dim3 nthrds(1024, 1, 1);
605 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
608 nblcks, nthrds, 0, strm, (
real *) a,
617 void hip_col3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
619 const dim3 nthrds(1024, 1, 1);
620 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
623 nblcks, nthrds, 0, strm, (
real *) a,
632 void hip_subcol3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
634 const dim3 nthrds(1024, 1, 1);
635 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
638 nblcks, nthrds, 0, strm, (
real *) a,
647 void hip_sub2(
void *a,
void *b,
int *n, hipStream_t strm) {
649 const dim3 nthrds(1024, 1, 1);
650 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
653 nblcks, nthrds, 0, strm, (
real *) a,
662 void hip_sub3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
664 const dim3 nthrds(1024, 1, 1);
665 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
668 nblcks, nthrds, 0, strm, (
real *) a,
677 void hip_addcol3(
void *a,
void *b,
void *c,
int *n, hipStream_t strm) {
679 const dim3 nthrds(1024, 1, 1);
680 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
683 nblcks, nthrds, 0, strm, (
real *) a,
695 const dim3 nthrds(1024, 1, 1);
696 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
699 nblcks, nthrds, 0, strm, (
real *) a,
711 const dim3 nthrds(1024, 1, 1);
712 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
715 nblcks, nthrds, 0, strm, (
real *) a,
725 void *v1,
void *v2,
void *v3,
int *n,
728 const dim3 nthrds(1024, 1, 1);
729 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
732 nblcks, nthrds, 0, strm,
743 void *v1,
void *v2,
void *v3,
744 void *w1,
void *w2,
void *
w3,
745 int *n, hipStream_t strm) {
747 const dim3 nthrds(1024, 1, 1);
748 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
751 nblcks, nthrds, 0, strm,
778 const hipStream_t stream) {
783 hipMemcpyDeviceToHost, stream));
785 #elif HAVE_DEVICE_MPI
790 hipMemcpyDeviceToHost, stream));
799 const hipStream_t stream) {
804 hipMemcpyDeviceToHost, stream));
806 #elif HAVE_DEVICE_MPI
811 hipMemcpyDeviceToHost, stream));
821 const hipStream_t stream) {
826 hipMemcpyDeviceToHost, stream));
828 #elif HAVE_DEVICE_MPI
833 hipMemcpyDeviceToHost, stream));
842 const hipStream_t stream) {
847 hipMemcpyDeviceToHost, stream));
849 #elif HAVE_DEVICE_MPI
854 hipMemcpyDeviceToHost, stream));
865 const dim3 nthrds(1024, 1, 1);
866 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
867 const int nb = ((*n) + 1024 - 1)/ 1024;
873 nblcks, nthrds, 0, stream,
882 sizeof(
real), hipMemcpyDeviceToHost, stream));
894 const dim3 nthrds(1024, 1, 1);
895 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
896 const int nb = ((*n) + 1024 - 1)/ 1024;
902 nblcks, nthrds, 0, stream,
929 const int nt = 1024/pow2;
930 const dim3 nthrds(pow2, nt, 1);
931 const dim3 nblcks(((*n)+nt - 1)/nt, 1, 1);
932 const dim3 nthrds_red(1024,1,1);
933 const dim3 nblcks_red( (*
j),1,1);
934 const int nb = ((*n) + nt - 1)/nt;
940 nblcks, nthrds, 0, stream,
946 nblcks_red, nthrds_red, 0, stream,
962 const dim3 nthrds(1024, 1, 1);
963 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
964 const int nb = ((*n) + 1024 - 1)/ 1024;
971 nblcks, nthrds, 0, stream,
993 const dim3 nthrds(1024, 1, 1);
994 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
995 const int nb = ((*n) + 1024 - 1) / 1024;
1001 nblcks, nthrds, 0, stream,
1023 const dim3 nthrds(1024, 1, 1);
1024 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1025 const int nb = ((*n) + 1024 - 1)/ 1024;
1030 nblcks, nthrds, 0, stream,
1053 const dim3 nthrds(1024, 1, 1);
1054 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1055 const int nb = ((*n) + 1024 - 1)/ 1024;
1060 nblcks, nthrds, 0, stream,
1064 1, 1024, 0, stream, (
real *)
redbuf.dev, *ninf, nb);
1068 int nel = (int) (
redbuf.size /
sizeof(
real));
1083 const dim3 nthrds(1024, 1, 1);
1084 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1085 const int nb = ((*n) + 1024 - 1)/ 1024;
1090 nblcks, nthrds, 0, stream,
1094 1, 1024, 0, stream, (
real *)
redbuf.dev, *pinf, nb);
1098 int nel = (int) (
redbuf.size /
sizeof(
real));
1113 const dim3 nthrds(1024, 1, 1);
1114 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1115 const int nb = ((*n) + 1024 - 1)/ 1024;
1116 const real zero = 0.0;
1121 nblcks, nthrds, 0, stream,
1125 1, 1024, 0, stream, (
real *)
redbuf.dev, zero, nb);
1129 int nel = (int) (
redbuf.size /
sizeof(
real));
1145 const dim3 nthrds(1024, 1, 1);
1146 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1149 nblcks, nthrds, 0, stream, (
real *) a, *n);
1163 const dim3 nthrds(1024, 1, 1);
1164 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1167 nblcks, nthrds, 0, stream, (
real*)a, (
real*)b, *n);
1177 const dim3 nthrds(1024, 1, 1);
1178 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1181 nblcks, nthrds, 0, stream,
1192 const dim3 nthrds(1024, 1, 1);
1193 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1196 nblcks, nthrds, 0, stream, (
real *)a, *c, *n);
1206 const dim3 nthrds(1024, 1, 1);
1207 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1210 nblcks, nthrds, 0, stream,
1221 const dim3 nthrds(1024, 1, 1);
1222 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1225 nblcks, nthrds, 0, stream,
1236 const dim3 nthrds(1024, 1, 1);
1237 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1240 nblcks, nthrds, 0, stream,
1251 const dim3 nthrds(1024, 1, 1);
1252 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1255 nblcks, nthrds, 0, stream,
1266 const dim3 nthrds(1024, 1, 1);
1267 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
1270 nblcks, nthrds, 0, stream,
1280 void hip_iadd(
void *a,
int *c,
int *n, hipStream_t stream) {
1282 const dim3 nthrds(1024, 1, 1);
1283 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
1286 nblcks, nthrds, 0, stream,
static opencl_buffer_t redbuf
__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
__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 hip_buffer_reserve(hip_buffer_t *buf, size_t size)
struct hip_buffer hip_buffer_t
__global__ void copy_kernel(T *__restrict__ a, const T *__restrict__ b, const int n)
void hip_vdot3(void *dot, void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, int *n, hipStream_t strm)
void hip_global_reduce_add(real *bufred, void *bufred_d, int n, const hipStream_t stream)
void hip_col3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_cwrap(void *a, real *min_val, real *max_val, int *n, hipStream_t strm)
void hip_addsqr2s2(void *a, void *b, real *c1, int *n, hipStream_t strm)
real hip_glmax(void *a, real *ninf, int *n, hipStream_t stream)
void hip_rzero(void *a, int *n, hipStream_t strm)
void hip_power(void *ap, void *a, real *p, int *n, hipStream_t strm)
void hip_cfill_mask(void *a, real *c, int *size, void *mask, int *mask_size, hipStream_t strm)
void hip_pwmax_sca3(void *a, void *b, real *c, int *n, hipStream_t stream)
void hip_invcol3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_absval(void *a, int *n, hipStream_t stream)
void hip_masked_gather_copy_aligned(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_vcross(void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, void *w1, void *w2, void *w3, int *n, hipStream_t strm)
void hip_addcol3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_add3s2(void *a, void *b, void *c, real *c1, real *c2, int *n, hipStream_t strm)
void hip_masked_scatter_copy_aligned(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_add5s4(void *a, void *b, void *c, void *d, void *e, real *c1, real *c2, real *c3, real *c4, int *n, hipStream_t strm)
void hip_masked_copy_aligned(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_add2s2(void *a, void *b, real *c1, int *n, hipStream_t strm)
void hip_add4(void *a, void *b, void *c, void *d, int *n, hipStream_t strm)
void hip_redbuf_check_alloc_xp(int nb)
void hip_cadd2(void *a, void *b, real *c, int *n, hipStream_t strm)
real hip_glamax(void *a, int *n, hipStream_t stream)
real hip_vlsc3(void *u, void *v, void *w, int *n, hipStream_t stream)
void hip_cdiv2(void *a, void *b, real *c, int *n, hipStream_t strm)
void hip_pwmin_sca2(void *a, real *c, int *n, hipStream_t stream)
void hip_cmult2(void *a, void *b, real *c, int *n, hipStream_t strm)
void hip_invcol1(void *a, int *n, hipStream_t strm)
void hip_invcol2(void *a, void *b, int *n, hipStream_t strm)
void hip_global_reduce_max(real *bufred, void *bufred_d, int n, const hipStream_t stream)
void hip_cdiv(void *a, real *c, int *n, hipStream_t strm)
real_xp hip_glsubnorm2(void *a, void *b, int *n, hipStream_t stream)
void hip_sub2(void *a, void *b, int *n, hipStream_t strm)
real_xp hip_glsc2(void *a, void *b, int *n, hipStream_t stream)
void hip_add4s3(void *a, void *b, void *c, void *d, real *c1, real *c2, real *c3, int *n, hipStream_t strm)
void hip_col2(void *a, void *b, int *n, hipStream_t strm)
real hip_glmin(void *a, real *pinf, int *n, hipStream_t stream)
void hip_pwmin_vec3(void *a, void *b, void *c, int *n, hipStream_t stream)
void hip_glsc3_many(real_xp *h, void *w, void *v, void *mult, int *j, int *n, hipStream_t stream)
void hip_addcol3s2(void *a, void *b, void *c, real *s, int *n, hipStream_t strm)
void hip_masked_gather_copy(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_cfill(void *a, real *c, int *n, hipStream_t strm)
void hip_masked_atomic_reduction(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_masked_copy_0(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_add3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_pwmax_vec3(void *a, void *b, void *c, int *n, hipStream_t stream)
void hip_add2(void *a, void *b, int *n, hipStream_t strm)
void hip_sqrt_inplace(void *a, int *n, hipStream_t strm)
real_xp hip_glsum(void *a, int *n, hipStream_t stream)
real_xp hip_glsc3(void *a, void *b, void *c, int *n, hipStream_t stream)
void hip_global_reduce_add_xp(real_xp *bufred, void *bufred_d, int n, const hipStream_t stream)
void hip_copy(void *a, void *b, int *n, hipStream_t strm)
void hip_subcol3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_pwmax_sca2(void *a, real *c, int *n, hipStream_t stream)
void hip_iadd(void *a, int *c, int *n, hipStream_t stream)
void hip_pwmin_sca3(void *a, void *b, real *c, int *n, hipStream_t stream)
void hip_add2s1(void *a, void *b, real *c1, int *n, hipStream_t strm)
void hip_radd(void *a, real *c, int *n, hipStream_t strm)
void hip_redbuf_check_alloc(int nb)
void hip_add2s2_many(void *x, void **p, void *alpha, int *j, int *n, hipStream_t strm)
void hip_addcol4(void *a, void *b, void *c, void *d, int *n, hipStream_t strm)
void hip_pwmax_vec2(void *a, void *b, int *n, hipStream_t stream)
void hip_pwmin_vec2(void *a, void *b, int *n, hipStream_t stream)
void hip_sub3(void *a, void *b, void *c, int *n, hipStream_t strm)
void hip_face_masked_gather_copy(void *a, void *b, void *mask, void *facet, int *n1, int *n2, int *lx, int *ly, int *lz, int *m, hipStream_t strm)
void hip_masked_scatter_copy(void *a, void *b, void *mask, int *n, int *m, hipStream_t strm)
void hip_cmult(void *a, real *c, int *n, hipStream_t strm)
void hip_global_reduce_min(real *bufred, void *bufred_d, int n, const hipStream_t stream)
Object for handling masks in Neko.