38#include <hip/hip_runtime.h>
52 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
int *ch_sel,
59 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
60 int *ch_sel,
int *nwf_sel);
64 void *
dx,
void *
dy,
void *
dz,
void *
h1,
66 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
71 void *
u,
void *
v,
void *
w,
72 void *
dx,
void *
dy,
void *
dz,
void *
h1,
74 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
87 static int autotune[13] = { 0 };
90 static int autotune_eb[13] = { 0 };
92 static int autotune_ch[13] = { 0 };
94 static int autotune_nwf[13] = { 0 };
96 const dim3 nthrds_1d(1024, 1, 1);
97 const dim3 nblcks_1d((*
nelv), 1, 1);
99#define CASE_1D(LX, C) \
100 hipLaunchKernelGGL(HIP_KERNEL_NAME( \
101 ax_helm_kernel_1d<real, LX, NEKO_CHUNKS(LX, C)> ), \
102 nblcks_1d, NEKO_CHUNKS_NTHRDS(LX, C), 0, \
103 (hipStream_t) glb_cmd_queue, \
104 (real *) w, (real *) u, \
105 (real *) dx, (real *) dy, (real *) dz, \
106 (real *) dxt, (real *) dyt, (real *) dzt, (real *) h1, \
107 (real *) g11, (real *) g22, (real *) g33, \
108 (real *) g12, (real *) g13, (real *) g23); \
109 HIP_CHECK(hipGetLastError());
112#define CASE_1D_SEL(LX, SEL) \
114 case 0: CASE_1D(LX, 0); break; \
115 case 1: CASE_1D(LX, 1); break; \
116 case 2: CASE_1D(LX, 2); break; \
117 default: CASE_1D(LX, 3); break; \
120#define CASE_KSTEP(LX, C) \
121 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
122 ax_helm_kernel_kstep<real, LX, NEKO_EB(LX, C)> ), \
123 NEKO_EB_NBLCKS(*nelv, LX, C), NEKO_EB_NTHRDS(LX, C), 0, \
124 (hipStream_t) glb_cmd_queue, \
125 (real *) w, (real *) u, \
126 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
127 (real *) g11, (real *) g22, (real *) g33, \
128 (real *) g12, (real *) g13, (real *) g23, *nelv); \
129 HIP_CHECK(hipGetLastError());
131#define CASE_KSTEP_PADDED(LX, C) \
132 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
133 ax_helm_kernel_kstep_padded<real, LX, NEKO_EB(LX, C)> ),\
134 NEKO_EB_NBLCKS(*nelv, LX, C), NEKO_EB_NTHRDS(LX, C), 0, \
135 (hipStream_t) glb_cmd_queue, \
136 (real *) w, (real *) u, \
137 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
138 (real *) g11, (real *) g22, (real *) g33, \
139 (real *) g12, (real *) g13, (real *) g23, *nelv); \
140 HIP_CHECK(hipGetLastError());
142#define CASE_MFMA(LX, C) \
143 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
144 ax_helm_kernel_mfma<real, LX, NEKO_MFMA_NWF(C), \
145 NEKO_MFMA_TILE(C)> ), \
146 NEKO_MFMA_NBLCKS(*nelv, LX, C), NEKO_MFMA_NTHRDS(C), 0, \
147 (hipStream_t) glb_cmd_queue, \
148 (real *) w, (real *) u, \
149 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
150 (real *) g11, (real *) g22, (real *) g33, \
151 (real *) g12, (real *) g13, (real *) g23, *nelv); \
152 HIP_CHECK(hipGetLastError());
156#define CASE_MFMA_SEL(LX, SEL) \
158 case 0: CASE_MFMA(LX, 0); break; \
159 case 1: CASE_MFMA(LX, 1); break; \
160 case 2: CASE_MFMA(LX, 2); break; \
161 case 3: CASE_MFMA(LX, 3); break; \
162 case 4: CASE_MFMA(LX, 4); break; \
163 case 5: CASE_MFMA(LX, 5); break; \
164 case 6: CASE_MFMA(LX, 6); break; \
165 case 7: CASE_MFMA(LX, 7); break; \
166 case 8: CASE_MFMA(LX, 8); break; \
167 default: CASE_MFMA(LX, 9); break; \
177 "CASE_MFMA_SEL does not cover the candidate space");
180#define CASE_KSTEP_SEL(LX, SEL) \
182 case 0: CASE_KSTEP(LX, 0); break; \
183 case 1: CASE_KSTEP(LX, 1); break; \
184 default: CASE_KSTEP(LX, 2); break; \
187#define CASE_KSTEP_PADDED_SEL(LX, SEL) \
189 case 0: CASE_KSTEP_PADDED(LX, 0); break; \
190 case 1: CASE_KSTEP_PADDED(LX, 1); break; \
191 default: CASE_KSTEP_PADDED(LX, 2); break; \
196 if(autotune[LX] == 0 ) { \
197 autotune[LX]=tune<LX>( w, u, \
201 g12, g13, g23, nelv, lx, \
202 &autotune_eb[LX], &autotune_ch[LX], \
203 &autotune_nwf[LX]); \
204 } else if (autotune[LX] == 1 ) { \
205 CASE_1D_SEL(LX, autotune_ch[LX]); \
206 } else if (autotune[LX] == 2 ) { \
207 CASE_KSTEP_SEL(LX, autotune_eb[LX]); \
208 } else if (autotune[LX] == 3 ) { \
209 CASE_MFMA_SEL(LX, autotune_nwf[LX]); \
213#define CASE_PADDED(LX) \
215 if(autotune[LX] == 0 ) { \
216 autotune[LX]=tune_padded<LX>(w, u, \
220 g12, g13, g23,nelv,lx, \
221 &autotune_eb[LX], &autotune_ch[LX], \
222 &autotune_nwf[LX]); \
223 } else if (autotune[LX] == 1 ) { \
224 CASE_1D_SEL(LX, autotune_ch[LX]); \
225 } else if (autotune[LX] == 2 ) { \
226 CASE_KSTEP_PADDED_SEL(LX, autotune_eb[LX]); \
227 } else if (autotune[LX] == 3 ) { \
228 CASE_MFMA_SEL(LX, autotune_nwf[LX]); \
237#define CASE_LARGE(LX) \
242#define CASE_LARGE_PADDED(LX) \
244 CASE_KSTEP_PADDED(LX, 0); \
262 fprintf(stderr, __FILE__
": size not supported: %d\n", *lx);
275 fprintf(stderr, __FILE__
": size not supported: %d\n", *lx);
285 void *
u,
void *
v,
void *
w,
286 void *
dx,
void *
dy,
void *
dz,
290 void *
g23,
int *
nelv,
int *lx) {
295 static int autotune_v[17] = { 0 };
297 static int autotune_v_eb[17] = { 0 };
299 static int autotune_v_nwf[17] = { 0 };
301#define CASE_VECTOR_KSTEP(LX, C) \
302 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
303 ax_helm_kernel_vector_kstep<real, LX, \
305 NEKO_EB_NBLCKS(*nelv, LX, C), NEKO_EB_NTHRDS(LX, C), 0, \
306 (hipStream_t) glb_cmd_queue, \
307 (real *) au, (real *) av, (real *) aw, \
308 (real *) u, (real *) v, (real *) w, \
309 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
310 (real *) g11, (real *) g22, (real *) g33, \
311 (real *) g12, (real *) g13, (real *) g23, *nelv); \
312 HIP_CHECK(hipGetLastError());
314#define CASE_VECTOR_KSTEP_PADDED(LX, C) \
315 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
316 ax_helm_kernel_vector_kstep_padded<real, LX, \
318 NEKO_EB_NBLCKS(*nelv, LX, C), NEKO_EB_NTHRDS(LX, C), 0, \
319 (hipStream_t) glb_cmd_queue, \
320 (real *) au, (real *) av, (real *) aw, \
321 (real *) u, (real *) v, (real *) w, \
322 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
323 (real *) g11, (real *) g22, (real *) g33, \
324 (real *) g12, (real *) g13, (real *) g23, *nelv); \
325 HIP_CHECK(hipGetLastError());
329#define CASE_VECTOR_MFMA(LX, C) \
330 hipLaunchKernelGGL( HIP_KERNEL_NAME( \
331 ax_helm_kernel_mfma_vector<real, LX, \
333 NEKO_MFMA_TILE(C)> ), \
334 NEKO_MFMA_NBLCKS(*nelv, LX, C), NEKO_MFMA_NTHRDS(C), 0, \
335 (hipStream_t) glb_cmd_queue, \
336 (real *) au, (real *) av, (real *) aw, \
337 (real *) u, (real *) v, (real *) w, \
338 (real *) dx, (real *) dy, (real *) dz, (real *) h1, \
339 (real *) g11, (real *) g22, (real *) g33, \
340 (real *) g12, (real *) g13, (real *) g23, *nelv); \
341 HIP_CHECK(hipGetLastError());
343#define CASE_VECTOR_KSTEP_SEL(LX, SEL) \
345 case 0: CASE_VECTOR_KSTEP(LX, 0); break; \
346 case 1: CASE_VECTOR_KSTEP(LX, 1); break; \
347 default: CASE_VECTOR_KSTEP(LX, 2); break; \
350#define CASE_VECTOR_KSTEP_PADDED_SEL(LX, SEL) \
352 case 0: CASE_VECTOR_KSTEP_PADDED(LX, 0); break; \
353 case 1: CASE_VECTOR_KSTEP_PADDED(LX, 1); break; \
354 default: CASE_VECTOR_KSTEP_PADDED(LX, 2); break; \
358#define CASE_VECTOR_MFMA_SEL(LX, SEL) \
360 case 0: CASE_VECTOR_MFMA(LX, 0); break; \
361 case 1: CASE_VECTOR_MFMA(LX, 1); break; \
362 case 2: CASE_VECTOR_MFMA(LX, 2); break; \
363 case 3: CASE_VECTOR_MFMA(LX, 3); break; \
364 case 4: CASE_VECTOR_MFMA(LX, 4); break; \
365 case 5: CASE_VECTOR_MFMA(LX, 5); break; \
366 case 6: CASE_VECTOR_MFMA(LX, 6); break; \
367 case 7: CASE_VECTOR_MFMA(LX, 7); break; \
368 case 8: CASE_VECTOR_MFMA(LX, 8); break; \
369 default: CASE_VECTOR_MFMA(LX, 9); break; \
379 "CASE_VECTOR_MFMA_SEL does not cover the candidate space");
381#define CASE_VECTOR(LX) \
383 if (autotune_v[LX] == 0) { \
384 autotune_v[LX] = tune_vector<LX>(au, av, aw, u, v, w, \
387 g12, g13, g23, nelv, lx, \
388 &autotune_v_eb[LX], \
389 &autotune_v_nwf[LX]); \
390 } else if (autotune_v[LX] == 2) { \
391 CASE_VECTOR_KSTEP_SEL(LX, autotune_v_eb[LX]); \
392 } else if (autotune_v[LX] == 3) { \
393 CASE_VECTOR_MFMA_SEL(LX, autotune_v_nwf[LX]); \
397#define CASE_VECTOR_PADDED(LX) \
399 if (autotune_v[LX] == 0) { \
400 autotune_v[LX] = tune_vector_padded<LX>(au, av, aw, u, v, w, \
403 g12, g13, g23, nelv, lx, \
404 &autotune_v_eb[LX], \
405 &autotune_v_nwf[LX]); \
406 } else if (autotune_v[LX] == 2) { \
407 CASE_VECTOR_KSTEP_PADDED_SEL(LX, autotune_v_eb[LX]); \
408 } else if (autotune_v[LX] == 3) { \
409 CASE_VECTOR_MFMA_SEL(LX, autotune_v_nwf[LX]); \
431 fprintf(stderr, __FILE__
": size not supported: %d\n", *lx);
441 void *
u,
void *
v,
void *
w,
442 void *h2,
void *B,
int *n) {
444 const dim3 nthrds(1024, 1, 1);
445 const dim3 nblcks(((*n)+1024 - 1)/ 1024, 1, 1);
449 nblcks, nthrds, 0, stream,
457template < const
int LX >
461 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
int *ch_sel,
463 hipEvent_t start,stop;
497 const dim3 nthrds_1d(1024, 1, 1);
498 const dim3 nblcks_1d((*
nelv), 1, 1);
501 char *env_value = NULL;
502 char neko_log_buf[80];
504 env_value=getenv(
"NEKO_AUTOTUNE");
506 sprintf(neko_log_buf,
"Autotune Ax helm (lx: %d)", *lx);
521 if( !strcmp(env_value,
"1D") ) {
523 }
else if( !strcmp(env_value,
"KSTEP") ) {
525 }
else if( !strcmp(env_value,
"MFMA") ) {
529 sprintf(neko_log_buf,
"MFMA strategy not available for this config");
533 sprintf(neko_log_buf,
"Invalid value set for NEKO_AUTOTUNE");
541 const int pin = (strat == 1) ? ch_pin : (strat == 2) ? eb_pin :
542 (strat == 3) ? nwf_pin : -1;
549 sprintf(neko_log_buf,
"Set by env : 1 (1D, %d chunk)",
555 sprintf(neko_log_buf,
"Set by env : 2 (KSTEP, %d elem/block)",
561 sprintf(neko_log_buf,
"Set by env : 3 (MFMA %s, %d wf, %d elem/blk)",
571 sprintf(neko_log_buf,
"Set by env : %d (%s)", strat, env_value);
578 const bool try_1d = (strat == 0 || strat == 1);
579 const bool try_kstep = (strat == 0 || strat == 2);
580 const bool try_mfma = mfma && ((strat == 3) ||
594 void **vins[] = { &
u };
596 (*
nelv) * LX * LX * LX, stream)) {
597 sprintf(neko_log_buf,
"Verify : rel tol %.1e, synthetic input",
614 "skipped, no memory for it" :
"off (NEKO_TUNE_VERIFY=0)");
636 for (
int r = 0; r < rounds; r++) {
664 if (time1[best1] < time2[best]) {
672 if (time3[best3] < ((retval == 1) ? time1[best1] : time2[best])) {
683 }
else if (retval == 2) {
690 sprintf(neko_log_buf,
"Chose : 1 (1D, %d chunk)",
692 }
else if (retval == 2) {
693 sprintf(neko_log_buf,
"Chose : 2 (KSTEP, %d elem/block)",
696 sprintf(neko_log_buf,
"Chose : 3 (MFMA %s, %d wf, %d elem/blk)",
705template < const
int LX >
710 int *eb_sel,
int *ch_sel,
int *nwf_sel) {
711 hipEvent_t start, stop;
744 const dim3 nthrds_1d(1024, 1, 1);
745 const dim3 nblcks_1d((*
nelv), 1, 1);
748 char *env_value = NULL;
749 char neko_log_buf[80];
751 env_value=getenv(
"NEKO_AUTOTUNE");
753 sprintf(neko_log_buf,
"Autotune Ax helm (lx: %d)", *lx);
762 if( !strcmp(env_value,
"1D") ) {
764 }
else if( !strcmp(env_value,
"KSTEP") ) {
766 }
else if( !strcmp(env_value,
"MFMA") ) {
770 sprintf(neko_log_buf,
"MFMA strategy not available for this config");
774 sprintf(neko_log_buf,
"Invalid value set for NEKO_AUTOTUNE");
780 const int pin = (strat == 1) ? ch_pin : (strat == 2) ? eb_pin :
781 (strat == 3) ? nwf_pin : -1;
788 sprintf(neko_log_buf,
"Set by env : 1 (1D, %d chunk)",
794 sprintf(neko_log_buf,
"Set by env : 2 (KSTEP, %d elem/block)",
800 sprintf(neko_log_buf,
"Set by env : 3 (MFMA %s, %d wf, %d elem/blk)",
810 sprintf(neko_log_buf,
"Set by env : %d (%s)", strat, env_value);
815 const bool try_1d = (strat == 0 || strat == 1);
816 const bool try_kstep = (strat == 0 || strat == 2);
817 const bool try_mfma = mfma && ((strat == 3) ||
831 void **vins[] = { &
u };
833 (*
nelv) * LX * LX * LX, stream)) {
834 sprintf(neko_log_buf,
"Verify : rel tol %.1e, synthetic input",
851 "skipped, no memory for it" :
"off (NEKO_TUNE_VERIFY=0)");
873 for (
int r = 0; r < rounds; r++) {
901 if (time1[best1] < time2[best]) {
909 if (time3[best3] < ((retval == 1) ? time1[best1] : time2[best])) {
919 }
else if (retval == 2) {
926 sprintf(neko_log_buf,
"Chose : 1 (1D, %d chunk)",
928 }
else if (retval == 2) {
929 sprintf(neko_log_buf,
"Chose : 2 (KSTEP, %d elem/block)",
932 sprintf(neko_log_buf,
"Chose : 3 (MFMA %s, %d wf, %d elem/blk)",
955template < const
int LX >
957 void *
dx,
void *
dy,
void *
dz,
void *
h1,
959 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
961 hipEvent_t start, stop;
992 char *env_value = NULL;
993 char neko_log_buf[80];
995 env_value = getenv(
"NEKO_AUTOTUNE");
997 sprintf(neko_log_buf,
"Autotune Ax vector (lx: %d)", *lx);
1005 if ( !strcmp(env_value,
"KSTEP") || !strcmp(env_value,
"1D") ) {
1008 }
else if ( !strcmp(env_value,
"MFMA") ) {
1012 sprintf(neko_log_buf,
"MFMA strategy not available for this config");
1016 sprintf(neko_log_buf,
"Invalid value set for NEKO_AUTOTUNE");
1022 const int pin = (strat == 2) ? eb_pin : (strat == 3) ? nwf_pin : -1;
1028 sprintf(neko_log_buf,
"Set by env : 2 (KSTEP, %d elem/block)",
1033 sprintf(neko_log_buf,
"Set by env : 3 (MFMA %s, %d wf, %d elem/blk)",
1042 sprintf(neko_log_buf,
"Set by env : %d (%s)", strat, env_value);
1049 const bool try_kstep = (strat == 0 || strat == 2);
1050 const bool try_mfma = mfma && ((strat == 3) ||
1055 if (!sweep && !try_mfma) {
1057 sprintf(neko_log_buf,
"Vector Ax : %d elem/block (untuned)",
1075 void **vins[] = { &
u, &
v, &
w };
1077 (*
nelv) * LX * LX * LX, stream)) {
1078 sprintf(neko_log_buf,
"Verify : rel tol %.1e, synthetic input",
1092 "skipped, no memory for it" :
"off (NEKO_TUNE_VERIFY=0)");
1108 for (
int r = 0; r < rounds; r++) {
1132 retval = (time3[best3] < time2[best2]) ? 3 : 2;
1142 sprintf(neko_log_buf,
"Chose : 2 (KSTEP, %d elem/block)",
1146 sprintf(neko_log_buf,
"Chose : 3 (MFMA %s, %d wf, %d elem/blk)",
1157template < const
int LX >
1159 void *
u,
void *
v,
void *
w,
1160 void *
dx,
void *
dy,
void *
dz,
void *
h1,
1162 void *
g13,
void *
g23,
int *
nelv,
int *lx,
int *eb_sel,
1164 hipEvent_t start, stop;
1195 char *env_value = NULL;
1196 char neko_log_buf[80];
1198 env_value = getenv(
"NEKO_AUTOTUNE");
1200 sprintf(neko_log_buf,
"Autotune Ax vector (lx: %d)", *lx);
1208 if ( !strcmp(env_value,
"KSTEP") || !strcmp(env_value,
"1D") ) {
1211 }
else if ( !strcmp(env_value,
"MFMA") ) {
1215 sprintf(neko_log_buf,
"MFMA strategy not available for this config");
1219 sprintf(neko_log_buf,
"Invalid value set for NEKO_AUTOTUNE");
1225 const int pin = (strat == 2) ? eb_pin : (strat == 3) ? nwf_pin : -1;
1231 sprintf(neko_log_buf,
"Set by env : 2 (KSTEP, %d elem/block)",
1236 sprintf(neko_log_buf,
"Set by env : 3 (MFMA %s, %d wf, %d elem/blk)",
1245 sprintf(neko_log_buf,
"Set by env : %d (%s)", strat, env_value);
1252 const bool try_kstep = (strat == 0 || strat == 2);
1253 const bool try_mfma = mfma && ((strat == 3) ||
1257 if (!sweep && !try_mfma) {
1259 sprintf(neko_log_buf,
"Vector Ax : %d elem/block (untuned)",
1277 void **vins[] = { &
u, &
v, &
w };
1279 (*
nelv) * LX * LX * LX, stream)) {
1280 sprintf(neko_log_buf,
"Verify : rel tol %.1e, synthetic input",
1295 "skipped, no memory for it" :
"off (NEKO_TUNE_VERIFY=0)");
1311 for (
int r = 0; r < rounds; r++) {
1335 retval = (time3[best3] < time2[best2]) ? 3 : 2;
1344 sprintf(neko_log_buf,
"Chose : 2 (KSTEP, %d elem/block)",
1348 sprintf(neko_log_buf,
"Chose : 3 (MFMA %s, %d wf, %d elem/blk)",
#define CASE_KSTEP_SEL(LX, SEL)
#define CASE_1D_SEL(LX, SEL)
#define CASE_KSTEP_PADDED_SEL(LX, SEL)
#define CASE_VECTOR_KSTEP_SEL(LX, SEL)
#define CASE_VECTOR_KSTEP_PADDED_SEL(LX, SEL)
int tune_padded(void *w, void *u, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx, int *eb_sel, int *ch_sel, int *nwf_sel)
#define CASE_VECTOR_MFMA_SEL(LX, SEL)
#define CASE_KSTEP_SEL(LX, SEL)
void hip_ax_helm_vector_part2(void *au, void *av, void *aw, void *u, void *v, void *w, void *h2, void *B, int *n)
#define CASE_1D_SEL(LX, SEL)
#define CASE_VECTOR_KSTEP(LX, C)
#define CASE_MFMA_SEL(LX, SEL)
#define CASE_KSTEP_PADDED_SEL(LX, SEL)
void hip_ax_helm_vector(void *au, void *av, void *aw, void *u, void *v, void *w, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx)
void hip_ax_helm(void *w, void *u, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx)
#define CASE_LARGE_PADDED(LX)
int tune_vector(void *au, void *av, void *aw, void *u, void *v, void *w, void *dx, void *dy, void *dz, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx, int *eb_sel, int *nwf_sel)
#define CASE_VECTOR_KSTEP_PADDED(LX, C)
#define CASE_VECTOR_KSTEP_SEL(LX, SEL)
#define CASE_VECTOR_PADDED(LX)
#define CASE_VECTOR_KSTEP_PADDED_SEL(LX, SEL)
int tune(void *w, void *u, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx, int *eb_sel, int *ch_sel, int *nwf_sel)
int tune_vector_padded(void *au, void *av, void *aw, void *u, void *v, void *w, void *dx, void *dy, void *dz, void *h1, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx, int *eb_sel, int *nwf_sel)
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ g23
__global__ void T *__restrict__ T *__restrict__ aw
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ g22
__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__ const T *__restrict__ const T *__restrict__ g13
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ w
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const int *__restrict__ const int nelv
__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__ const T *__restrict__ g12
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dz
__global__ void const T *__restrict__ const T *__restrict__ dx
__global__ void const T *__restrict__ u
__global__ void T *__restrict__ av
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ dy
__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__ g33
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ g11
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ h1
__global__ void ax_helm_kernel_vector_part2(T *__restrict__ au, T *__restrict__ av, T *__restrict__ aw, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, const T *__restrict__ h2, const T *__restrict__ B, const int n)
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dyt
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dzt
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dxt
#define NEKO_CHUNKS_CANDIDATES
#define NEKO_EB_CANDIDATES
#define NEKO_EB_SEL(LX, SEL)
#define NEKO_CHUNKS_SEL(LX, SEL)
static int neko_chunks_pin()
#define NEKO_TUNE_TIME(T, LAUNCH, LX, C, ITERS)
static int neko_tune_rounds()
#define NEKO_TUNE_LOG(LX, T1, T2)
#define NEKO_TUNE_BEST(T, BEST, N)
static int neko_tune_iters()
#define NEKO_TUNE_FOR(C, ON, PIN, N)
static int neko_eb_sweep()
static void neko_tune_verify_ref(neko_tune_verify_t *v, hipStream_t stream)
#define NEKO_TUNE_VERIFY_CAND(VF, REJ, LAUNCH, LX, C, NAME)
static void neko_tune_verify_end(neko_tune_verify_t *v, hipStream_t stream)
static int neko_tune_verify_on()
static int neko_tune_verify_begin(neko_tune_verify_t *v, real **outs, const int nout, void ***ins, const int nin, const int n, hipStream_t stream)
#define NEKO_TUNE_APPLY_REJ(T, REJ, N)
#define NEKO_TUNE_LOG_KSTEP(LX, T2)
static bool mfma_lx_supported()
#define NEKO_TUNE_LOG_MFMA_VEC(LX, T3)
#define NEKO_TUNE_LOG_MFMA(LX, T3)
static const char * mfma_tile_name(const int c)
#define NEKO_MFMA_CANDIDATES
static int neko_mfma_pin()
static int neko_mfma_candidates()
static bool hip_have_mfma()
#define NEKO_MFMA_EB(LX, C)
static int neko_mfma_sweep()
void log_error(char *msg)
void log_message(char *msg)
void log_section(char *msg)