|
Neko 1.99.11
A portable framework for high-order spectral element flow simulations
|
#include "wave.h"

Go to the source code of this file.
Macros | |
| #define | MASKED_ATOMIC_RED_BLOCK 256 |
Functions | |
| template<typename T> | |
| __global__ void | cmult_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | masked_gather_copy_kernel (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | masked_gather_copy_aligned_kernel (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| __device__ __forceinline__ void | face_gather_nonlinear_index (int *index, const int idx, const int lx, const int ly, const int lz) |
| __device__ __forceinline__ int | face_gather_idx (const int i, const int j, const int k, const int l, const int n1, const int n2, const int nf) |
| template<typename T> | |
| __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) |
| template<typename T> | |
| __global__ void | masked_scatter_copy_kernel (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | masked_scatter_copy_aligned_kernel (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | masked_atomic_reduction_kernel (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | masked_copy_kernel_0 (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | masked_copy_kernel_aligned (T *__restrict__ a, T *__restrict__ b, int *__restrict__ mask, const int n, const int n_mask) |
| template<typename T> | |
| __global__ void | cfill_mask_kernel (T *__restrict__ a, const T c, const int n, int *__restrict__ mask, const int n_mask) |
| template<typename T> | |
| __global__ void | cmult2_kernel (T *__restrict__ a, T *__restrict__ b, const T c, const int n) |
| template<typename T> | |
| __global__ void | cdiv_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | cdiv2_kernel (T *__restrict__ a, T *__restrict__ b, const T c, const int n) |
| template<typename T> | |
| __global__ void | cadd_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | cadd2_kernel (T *__restrict__ a, T *__restrict__ b, const T c, const int n) |
| template<typename T> | |
| __global__ void | cwrap_kernel (T *__restrict__ a, const T min_val, const T max_val, const int n) |
| template<typename T> | |
| __global__ void | sqrt_inplace_kernel (T *__restrict__ a, const int n) |
| template<typename T> | |
| __global__ void | power_kernel (T *__restrict__ ap, const T *__restrict__ a, const T p, const int n) |
| template<typename T> | |
| __global__ void | cfill_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | copy_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | add2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | add3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | add4_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const int n) |
| template<typename T> | |
| __global__ void | add2s1_kernel (T *__restrict__ a, const T *__restrict__ b, const T c1, const int n) |
| template<typename T> | |
| __global__ void | add2s2_many_kernel (T *__restrict__ x, const T **p, const T *alpha, const int p_cur, const int n) |
| template<typename T> | |
| __global__ void | add2s2_kernel (T *__restrict__ a, const T *__restrict__ b, const T c1, const int n) |
| template<typename T> | |
| __global__ void | addsqr2s2_kernel (T *__restrict__ a, const T *__restrict__ b, const T c1, const int n) |
| template<typename T> | |
| __global__ void | add3s2_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T c1, const T c2, const int n) |
| template<typename T> | |
| __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) |
| template<typename T> | |
| __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) |
| template<typename T> | |
| __global__ void | invcol1_kernel (T *__restrict__ a, const int n) |
| template<typename T> | |
| __global__ void | invcol2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | invcol3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | col2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | col3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | subcol3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | sub2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | sub3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | addcol3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | addcol4_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T *__restrict__ d, const int n) |
| template<typename T> | |
| __global__ void | addcol3s2_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const T s, const int n) |
| template<typename T> | |
| __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) |
| template<typename T> | |
| __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) |
| template<typename T> | |
| __inline__ __device__ T | reduce_warp (T val) |
| template<typename T> | |
| __inline__ __device__ T | reduce_max_warp (T val) |
| template<typename T> | |
| __inline__ __device__ T | reduce_min_warp (T val) |
| template<typename T> | |
| __global__ void | reduce_kernel (T *bufred, const int n) |
| template<typename T> | |
| __global__ void | reduce_max_kernel (T *bufred, const T ninf, const int n) |
| template<typename T> | |
| __global__ void | reduce_min_kernel (T *bufred, const T pinf, const int n) |
| template<typename T_acc> | |
| __global__ void | glsc3_reduce_kernel (T_acc *bufred, const int n, const int j) |
| template<typename T> | |
| __global__ void | vlsc3_kernel (const T *a, const T *b, const T *c, T *buf_h, const int n) |
| template<typename T, typename T_acc> | |
| __global__ void | glsc3_kernel (const T *a, const T *b, const T *c, T_acc *buf_h, const int n) |
| template<typename T, typename T_acc> | |
| __global__ void | glsc3_many_kernel (const T *a, const T **b, const T *c, T_acc *buf_h, const int j, const int n) |
| template<typename T, typename T_acc> | |
| __global__ void | glsc2_kernel (const T *a, const T *b, T_acc *buf_h, const int n) |
| template<typename T, typename T_acc> | |
| __global__ void | glsubnorm2_kernel (const T *a, const T *b, T_acc *buf_h, const int n) |
| template<typename T, typename T_acc> | |
| __global__ void | glsum_kernel (const T *a, T_acc *buf_h, const int n) |
| template<typename T> | |
| __global__ void | glmax_kernel (const T *a, const T ninf, T *buf_h, const int n) |
| template<typename T> | |
| __global__ void | glamax_kernel (const T *a, T *buf_h, const int n) |
| template<typename T> | |
| __global__ void | glmin_kernel (const T *a, const T pinf, T *buf_h, const int n) |
| template<typename T> | |
| __global__ void | absval_kernel (T *__restrict__ a, const int n) |
| template<typename T> | |
| __global__ void | pwmax_vec2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | pwmax_vec3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | pwmax_sca2_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | pwmax_sca3_kernel (T *__restrict__ a, const T *__restrict b, const T c, const int n) |
| template<typename T> | |
| __global__ void | pwmin_vec2_kernel (T *__restrict__ a, const T *__restrict__ b, const int n) |
| template<typename T> | |
| __global__ void | pwmin_vec3_kernel (T *__restrict__ a, const T *__restrict__ b, const T *__restrict__ c, const int n) |
| template<typename T> | |
| __global__ void | pwmin_sca2_kernel (T *__restrict__ a, const T c, const int n) |
| template<typename T> | |
| __global__ void | pwmin_sca3_kernel (T *__restrict__ a, const T *__restrict b, const T c, const int n) |
| #define MASKED_ATOMIC_RED_BLOCK 256 |
Block size of masked_atomic_reduction_kernel, also the number of shared memory bins. A multiple of both wavefront sizes.
Definition at line 192 of file math_kernel.h.
| __global__ void absval_kernel | ( | T *__restrict__ | a, |
| const int | n ) |
Device kernel for abs_value
Definition at line 1427 of file math_kernel.h.
| __global__ void add2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for add2
Definition at line 498 of file math_kernel.h.
| __global__ void add2s1_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T | c1, | ||
| const int | n ) |
Device kernel for add2s1
Definition at line 549 of file math_kernel.h.
| __global__ void add2s2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T | c1, | ||
| const int | n ) |
Device kernel for add2s2
Definition at line 589 of file math_kernel.h.
| __global__ void add2s2_many_kernel | ( | T *__restrict__ | x, |
| const T ** | p, | ||
| const T * | alpha, | ||
| const int | p_cur, | ||
| const int | n ) |
Device kernel for add2s2
Definition at line 566 of file math_kernel.h.
| __global__ void add3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for add3
Definition at line 514 of file math_kernel.h.
| __global__ void add3s2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T | c1, | ||
| const T | c2, | ||
| const int | n ) |
Device kernel for add3s2
Definition at line 623 of file math_kernel.h.
| __global__ void add4_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T *__restrict__ | d, | ||
| const int | n ) |
Device kernel for add4
Definition at line 531 of file math_kernel.h.
| __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 ) |
Device kernel for add4s3
Definition at line 642 of file math_kernel.h.
| __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 ) |
Device kernel for add5s4
Definition at line 663 of file math_kernel.h.
| __global__ void addcol3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for addcol3
Definition at line 818 of file math_kernel.h.
| __global__ void addcol3s2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T | s, | ||
| const int | n ) |
Device kernel for addcol3s2
Definition at line 855 of file math_kernel.h.
| __global__ void addcol4_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T *__restrict__ | d, | ||
| const int | n ) |
Device kernel for addcol4
Definition at line 836 of file math_kernel.h.
| __global__ void addsqr2s2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T | c1, | ||
| const int | n ) |
Device kernel for addsqr2s2
Definition at line 606 of file math_kernel.h.
| __global__ void cadd2_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| const T | c, | ||
| const int | n ) |
Device kernel for cadd2
Definition at line 399 of file math_kernel.h.
| __global__ void cadd_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for cadd
Definition at line 383 of file math_kernel.h.
| __global__ void cdiv2_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| const T | c, | ||
| const int | n ) |
Device kernel for cdiv2
Definition at line 366 of file math_kernel.h.
| __global__ void cdiv_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for cdiv
Definition at line 350 of file math_kernel.h.
| __global__ void cfill_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for cmult
Definition at line 466 of file math_kernel.h.
| __global__ void cfill_mask_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n, | ||
| int *__restrict__ | mask, | ||
| const int | n_mask ) |
Device kernel for cfill_mask
Definition at line 317 of file math_kernel.h.
| __global__ void cmult2_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| const T | c, | ||
| const int | n ) |
Device kernel for cmult2
Definition at line 333 of file math_kernel.h.
| __global__ void cmult_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for cmult
Definition at line 43 of file math_kernel.h.
| __global__ void col2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for col2
Definition at line 735 of file math_kernel.h.
| __global__ void col3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for col3
Definition at line 751 of file math_kernel.h.
| __global__ void copy_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for copy
Definition at line 482 of file math_kernel.h.

| __global__ void cwrap_kernel | ( | T *__restrict__ | a, |
| const T | min_val, | ||
| const T | max_val, | ||
| const int | n ) |
Device kernel for cwrap
Definition at line 416 of file math_kernel.h.
| __device__ __forceinline__ int face_gather_idx | ( | const int | i, |
| const int | j, | ||
| const int | k, | ||
| const int | l, | ||
| const int | n1, | ||
| const int | n2, | ||
| const int | nf ) |
Definition at line 107 of file math_kernel.h.
| __device__ __forceinline__ void face_gather_nonlinear_index | ( | int * | index, |
| const int | idx, | ||
| const int | lx, | ||
| const int | ly, | ||
| const int | lz ) |
Definition at line 92 of file math_kernel.h.
| __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 ) |
Device kernel for masked gather copy from a face-local field
Definition at line 116 of file math_kernel.h.

| __global__ void glamax_kernel | ( | const T * | a, |
| T * | buf_h, | ||
| const int | n ) |
Device kernel for glamax
Definition at line 1356 of file math_kernel.h.

| __global__ void glmax_kernel | ( | const T * | a, |
| const T | ninf, | ||
| T * | buf_h, | ||
| const int | n ) |
Device kernel for glmax
Definition at line 1319 of file math_kernel.h.

| __global__ void glmin_kernel | ( | const T * | a, |
| const T | pinf, | ||
| T * | buf_h, | ||
| const int | n ) |
Device kernel for glmin
Definition at line 1391 of file math_kernel.h.

| __global__ void glsc2_kernel | ( | const T * | a, |
| const T * | b, | ||
| T_acc * | buf_h, | ||
| const int | n ) |
Device kernel for glsc2
Definition at line 1214 of file math_kernel.h.

| __global__ void glsc3_kernel | ( | const T * | a, |
| const T * | b, | ||
| const T * | c, | ||
| T_acc * | buf_h, | ||
| const int | n ) |
Device kernel for glsc3
Definition at line 1138 of file math_kernel.h.

| __global__ void glsc3_many_kernel | ( | const T * | a, |
| const T ** | b, | ||
| const T * | c, | ||
| T_acc * | buf_h, | ||
| const int | j, | ||
| const int | n ) |
Device kernel for glsc3 many
Definition at line 1173 of file math_kernel.h.

| __global__ void glsc3_reduce_kernel | ( | T_acc * | bufred, |
| const int | n, | ||
| const int | j ) |
Reduction kernel for glsc3
Definition at line 1069 of file math_kernel.h.

| __global__ void glsubnorm2_kernel | ( | const T * | a, |
| const T * | b, | ||
| T_acc * | buf_h, | ||
| const int | n ) |
Device kernel for glsubnorm
Definition at line 1249 of file math_kernel.h.

| __global__ void glsum_kernel | ( | const T * | a, |
| T_acc * | buf_h, | ||
| const int | n ) |
Device kernel for glsum
Definition at line 1284 of file math_kernel.h.

| __global__ void invcol1_kernel | ( | T *__restrict__ | a, |
| const int | n ) |
Device kernel for invcol1
Definition at line 686 of file math_kernel.h.
| __global__ void invcol2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for invcol2
Definition at line 702 of file math_kernel.h.
| __global__ void invcol3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for invcol3
Definition at line 718 of file math_kernel.h.
| __global__ void masked_atomic_reduction_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked atomic update
Definition at line 198 of file math_kernel.h.

| __global__ void masked_copy_kernel_0 | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked copy with BC style mask
Definition at line 281 of file math_kernel.h.
| __global__ void masked_copy_kernel_aligned | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked copy with point zone style mask
Definition at line 299 of file math_kernel.h.
| __global__ void masked_gather_copy_aligned_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked gather copy aligned
Definition at line 77 of file math_kernel.h.
| __global__ void masked_gather_copy_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked gather copy
Definition at line 59 of file math_kernel.h.
| __global__ void masked_scatter_copy_aligned_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked scatter copy with aligned mask
Definition at line 174 of file math_kernel.h.
| __global__ void masked_scatter_copy_kernel | ( | T *__restrict__ | a, |
| T *__restrict__ | b, | ||
| int *__restrict__ | mask, | ||
| const int | n, | ||
| const int | n_mask ) |
Device kernel for masked scatter copy
Definition at line 156 of file math_kernel.h.
| __global__ void power_kernel | ( | T *__restrict__ | ap, |
| const T *__restrict__ | a, | ||
| const T | p, | ||
| const int | n ) |
Device kernel for power
Definition at line 449 of file math_kernel.h.
| __global__ void pwmax_sca2_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for point-wise max of vector and scalar a = max(a, c)
Definition at line 1475 of file math_kernel.h.
| __global__ void pwmax_sca3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict | b, | ||
| const T | c, | ||
| const int | n ) |
Device kernel for point-wise max of vector and scalar a = max(b, c)
Definition at line 1488 of file math_kernel.h.
| __global__ void pwmax_vec2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for point-wise max of two vectors a = max(a, b)
Definition at line 1447 of file math_kernel.h.
| __global__ void pwmax_vec3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for point-wise max of two vectors a = max(b, c)
Definition at line 1460 of file math_kernel.h.
| __global__ void pwmin_sca2_kernel | ( | T *__restrict__ | a, |
| const T | c, | ||
| const int | n ) |
Device kernel for point-wise min of vector and scalar a = min(a, c)
Definition at line 1531 of file math_kernel.h.
| __global__ void pwmin_sca3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict | b, | ||
| const T | c, | ||
| const int | n ) |
Device kernel for point-wise min of vector and scalar a = min(b, c)
Definition at line 1544 of file math_kernel.h.
| __global__ void pwmin_vec2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for point-wise min of two vectors a = min(a, b)
Definition at line 1503 of file math_kernel.h.
| __global__ void pwmin_vec3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for point-wise min of two vectors a = min(b, c)
Definition at line 1516 of file math_kernel.h.
| __global__ void reduce_kernel | ( | T * | bufred, |
| const int | n ) |
Vector reduction kernel
Definition at line 975 of file math_kernel.h.

| __global__ void reduce_max_kernel | ( | T * | bufred, |
| const T | ninf, | ||
| const int | n ) |
Vector reduction maximisation kernel
Definition at line 1006 of file math_kernel.h.

| __inline__ __device__ T reduce_max_warp | ( | T | val | ) |
Warp shuffle reduction of maximisation
Definition at line 943 of file math_kernel.h.
| __global__ void reduce_min_kernel | ( | T * | bufred, |
| const T | pinf, | ||
| const int | n ) |
Vector reduction minimisation kernel
Definition at line 1037 of file math_kernel.h.

| __inline__ __device__ T reduce_min_warp | ( | T | val | ) |
Warp shuffle reduction of minimisation
Definition at line 959 of file math_kernel.h.
| __inline__ __device__ T reduce_warp | ( | T | val | ) |
Warp shuffle reduction
The ladder is stepped down from NEKO_WAVE_SIZE/2, so the leading half wave shuffle is only emitted on a 64 lane wavefront. At wave64 this preprocesses to exactly the sequence it always has; at wave32 the 32 step would have shuffled past the end of the wave, where __shfl_down returns the lane's own value and the reduction silently doubles it.
Definition at line 927 of file math_kernel.h.
| __global__ void sqrt_inplace_kernel | ( | T *__restrict__ | a, |
| const int | n ) |
Device kernel for sqrt_inplace
Definition at line 434 of file math_kernel.h.
| __global__ void sub2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n ) |
Device kernel for sub2
Definition at line 785 of file math_kernel.h.
| __global__ void sub3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for sub3
Definition at line 801 of file math_kernel.h.
| __global__ void subcol3_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const int | n ) |
Device kernel for subcol3
Definition at line 768 of file math_kernel.h.
| __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 ) |
Device kernel for vcross
Definition at line 896 of file math_kernel.h.
| __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 ) |
Device kernel for vdot3
Definition at line 874 of file math_kernel.h.
| __global__ void vlsc3_kernel | ( | const T * | a, |
| const T * | b, | ||
| const T * | c, | ||
| T * | buf_h, | ||
| const int | n ) |
Device kernel for vlsc3
Definition at line 1103 of file math_kernel.h.
