48#include "math_kernel.cl.h"
55 b,
a, 0, 0, (*n) *
sizeof(
real),
78 const int nb = ((*n) + 256 - 1) / 256;
108 const int nb = ((*n) + 256 - 1) / 256;
138 const int nb = ((*n) + 256 - 1) / 256;
167 const int nb = ((*mask_size) + 256 - 1) / 256;
216 const int nb = ((*n) + 256 - 1) / 256;
243 const int nb = ((*n) + 256 - 1) / 256;
268 const int nb = ((*n) + 256 - 1) / 256;
295 const int nb = ((*n) + 256 - 1) / 256;
320 const int nb = ((*n) + 256 - 1) / 256;
347 const int nb = ((*n) + 256 - 1) / 256;
372 const int nb = ((*n) + 256 - 1) / 256;
398 const int nb = ((*n) + 256 - 1) / 256;
426 const int nb = ((*n) + 256 - 1) / 256;
455 const int nb = ((*n) + 256 - 1) / 256;
484 const int nb = ((*n) + 256 - 1) / 256;
513 const int nb = ((*n) + 256 - 1) / 256;
544 const int nb = ((*n) + 256 - 1) / 256;
574 const int nb = ((*n) + 256 - 1) / 256;
604 const int nb = ((*n) + 256 - 1) / 256;
629 const int nb = ((*n) + 256 - 1) / 256;
655 const int nb = ((*n) + 256 - 1) / 256;
681 const int nb = ((*n) + 256 - 1) / 256;
709 const int nb = ((*n) + 256 - 1) / 256;
737 const int nb = ((*n) + 256 - 1) / 256;
763 const int nb = ((*n) + 256 - 1) / 256;
791 const int nb = ((*n) + 256 - 1) / 256;
819 const int nb = ((*n) + 256 - 1) / 256;
848 const int nb = ((*n) + 256 - 1) / 256;
863 void *v1,
void *v2,
void *v3,
int *n,
882 const int nb = ((*n) + 256 - 1) / 256;
897 void *v1,
void *v2,
void *v3,
898 void *w1,
void *w2,
void *
w3,
920 const int nb = ((*n) + 256 - 1) / 256;
948 const int nb = ((*n) + 256 - 1) / 256;
983 for (
i = 0;
i <
nb;
i++) {
1008 const int nt = 256 /
pow2;
1009 const int nb = ((*n) + nt - 1) / nt;
1044 for (
k = 0;
k < (*j);
k++) {
1048 for (
i = 0;
i <
nb;
i++) {
1049 for (
k = 0;
k < (*j);
k++) {
1067 const int nb = ((*n) + 256 - 1) / 256;
1094 for (
i = 0;
i <
nb;
i++) {
1116 const int nb = ((*n) + 256 - 1) / 256;
1143 for (
i = 0;
i <
nb;
i++) {
1165 const int nb = ((*n) + 256 - 1) / 256;
1191 for (
i = 0;
i <
nb;
i++) {
1218 const int nb = ((*n) + 256 - 1) / 256;
__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__ 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 opencl_kernel_jit(const char *kernel, cl_program *program)
void opencl_iadd(void *a, int *c, int *n, cl_command_queue cmd_queue)
void opencl_col3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
void opencl_cdiv(void *a, real *c, int *n, cl_command_queue cmd_queue)
void opencl_masked_scatter_copy(void *a, void *b, void *mask, int *n, int *m, cl_command_queue cmd_queue)
void opencl_vcross(void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, void *w1, void *w2, void *w3, int *n, cl_command_queue cmd_queue)
void opencl_masked_gather_copy(void *a, void *b, void *mask, int *n, int *m, cl_command_queue cmd_queue)
void opencl_sub2(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_col2(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_add2s2_many(void *x, void *p, void *alpha, int *j, int *n, cl_command_queue cmd_queue)
void opencl_sub3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
void opencl_add2s1(void *a, void *b, real *c1, int *n, cl_command_queue cmd_queue)
void opencl_invcol1(void *a, int *n, cl_command_queue cmd_queue)
void opencl_add3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
real opencl_glsc3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
void opencl_rone(void *a, int *n, cl_command_queue cmd_queue)
void opencl_cmult(void *a, real *c, int *n, cl_command_queue cmd_queue)
void opencl_cfill_mask(void *a, void *c, int *size, void *mask, int *mask_size, cl_command_queue cmd_queue)
void opencl_cadd2(void *a, void *b, real *c, int *n, cl_command_queue cmd_queue)
real opencl_glsum(void *a, int *n, cl_command_queue cmd_queue)
void opencl_masked_copy(void *a, void *b, void *mask, int *n, int *m, cl_command_queue cmd_queue)
void opencl_add4(void *a, void *b, void *c, void *d, int *n, cl_command_queue cmd_queue)
void opencl_radd(void *a, real *c, int *n, cl_command_queue cmd_queue)
void opencl_add2s2(void *a, void *b, real *c1, int *n, cl_command_queue cmd_queue)
void opencl_vdot3(void *dot, void *u1, void *u2, void *u3, void *v1, void *v2, void *v3, int *n, cl_command_queue cmd_queue)
void opencl_add3s2(void *a, void *b, void *c, real *c1, real *c2, int *n, cl_command_queue cmd_queue)
void opencl_glsc3_many(real *h, void *w, void *v, void *mult, int *j, int *n, cl_command_queue cmd_queue)
real opencl_glsubnorm2(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_addsqr2s2(void *a, void *b, real *c1, int *n, cl_command_queue cmd_queue)
void opencl_addcol3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
void opencl_rzero(void *a, int *n, cl_command_queue cmd_queue)
void opencl_copy(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_subcol3(void *a, void *b, void *c, int *n, cl_command_queue cmd_queue)
void opencl_add2(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_addcol4(void *a, void *b, void *c, void *d, int *n, cl_command_queue cmd_queue)
void opencl_invcol2(void *a, void *b, int *n, cl_command_queue cmd_queue)
real opencl_glsc2(void *a, void *b, int *n, cl_command_queue cmd_queue)
void opencl_cdiv2(void *a, void *b, real *c, int *n, cl_command_queue cmd_queue)
void opencl_cfill(void *a, real *c, int *n, cl_command_queue cmd_queue)
void opencl_cmult2(void *a, void *b, real *c, int *n, cl_command_queue cmd_queue)
Object for handling masks in Neko.