1#ifndef __MATH_MATH_KERNEL_H__
2#define __MATH_MATH_KERNEL_H__
48 for (
int i = idx;
i < n;
i +=
str) {
111template<
typename T >
129template<
typename T >
145template<
typename T >
154 for (
int i = idx;
i < n;
i +=
str) {
162template<
typename T >
170 for (
int i = idx;
i < n;
i +=
str) {
178template<
typename T >
187 for (
int i = idx;
i < n;
i +=
str) {
195template<
typename T >
203 for (
int i = idx;
i < n;
i +=
str) {
211template<
typename T >
220 for (
int i = idx;
i < n;
i +=
str) {
228template<
typename T >
236 for (
int i = idx;
i < n;
i +=
str) {
244template<
typename T >
252 for (
int i = idx;
i < n;
i +=
str) {
260template<
typename T >
269 for (
int i = idx;
i < n;
i +=
str) {
277template<
typename T >
287 for (
int i = idx;
i < n;
i +=
str) {
288 a[
i] = b[
i] + c[
i] + d[
i];
295template<
typename T >
304 for (
int i = idx;
i < n;
i +=
str) {
312template<
typename T >
323 for (
int i = idx;
i < n;
i+=
str) {
326 tmp += p[
j][
i]*alpha[
j];
335template<
typename T >
344 for (
int i = idx;
i < n;
i +=
str) {
352template<
typename T >
361 for (
int i = idx;
i < n;
i +=
str) {
369template<
typename T >
380 for (
int i = idx;
i < n;
i +=
str) {
388template<
typename T >
396 for (
int i = idx;
i < n;
i +=
str) {
404template<
typename T >
412 for (
int i = idx;
i < n;
i +=
str) {
420template<
typename T >
429 for (
int i = idx;
i < n;
i +=
str) {
437template<
typename T >
445 for (
int i = idx;
i < n;
i +=
str) {
453template<
typename T >
462 for (
int i = idx;
i < n;
i +=
str) {
470template<
typename T >
479 for (
int i = idx;
i < n;
i +=
str) {
480 a[
i] =
a[
i] - b[
i] * c[
i];
487template<
typename T >
495 for (
int i = idx;
i < n;
i +=
str) {
503template<
typename T >
512 for (
int i = idx;
i < n;
i +=
str) {
520template<
typename T >
529 for (
int i = idx;
i < n;
i +=
str) {
530 a[
i] =
a[
i] + b[
i] * c[
i];
538template<
typename T >
548 for (
int i = idx;
i < n;
i +=
str) {
549 a[
i] =
a[
i] + b[
i] * c[
i] * d[
i];
557template<
typename T >
570 for (
int i = idx;
i < n;
i +=
str) {
579template<
typename T >
594 for (
int i = idx;
i < n;
i +=
str) {
597 u3[
i] = v1[
i]*w2[
i] - v2[
i]*w1[
i];
618template<
typename T >
624 for (
int i = idx;
i<n ;
i +=
str)
650template<
typename T >
661 for (
int i=idx ;
i<n ;
i+=step)
684template<
typename T >
699 for (
int i = idx;
i < n;
i+=
str) {
719template<
typename T >
734 for (
int i = idx;
i < n;
i+=
str) {
760template<
typename T >
774 for (
int i = idx;
i < n;
i+=
str) {
795template<
typename T >
809 for (
int i = idx;
i < n;
i+=
str) {
830template<
typename T >
843 for (
int i = idx;
i<n ;
i +=
str)
865template<
typename T >
872 for (
int i = idx;
i < n;
i +=
str) {
__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)
__global__ void addcol4_kernel(T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, 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)
__inline__ __device__ T reduce_warp(T val)
__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 glsc3_many_kernel(const T *a, const T **b, const T *c, T *buf_h, const int j, 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 glsc3_reduce_kernel(T *bufred, const int n, const int j)
__global__ void pwmax_sca2_kernel(T *__restrict__ a, const T c, const int n)
__global__ void glsubnorm2_kernel(const T *a, const T *b, T *buf_h, 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 add2s1_kernel(T *__restrict__ a, const T *__restrict__ b, const T c1, const int n)
__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 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 col2_kernel(T *__restrict__ a, const T *__restrict__ b, 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 glsc2_kernel(const T *a, const T *b, 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 glsum_kernel(const T *a, T *buf_h, const int n)
__global__ void masked_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 *buf_h, const int n)
__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 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 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)
Object for handling masks in Neko.