|
Neko 1.99.11
A portable framework for high-order spectral element flow simulations
|

Go to the source code of this file.
Functions | |
| template<typename T> | |
| __device__ __forceinline__ void | ax_helm_svv_factorized_stress_flux (const T ur, const T us, const T ut, const T vr, const T vs, const T vt, const T wr, const T ws, const T wt, const T drdx, const T drdy, const T drdz, const T dsdx, const T dsdy, const T dsdz, const T dtdx, const T dtdy, const T dtdz, const T dj, T &shur, T &shus, T &shvr, T &shvs, T &shwr, T &shws, T &rut, T &rvt, T &rwt) |
| template<typename T, const int LX, const bool PAD> | |
| __global__ void | __launch_bounds__ (LX *LX, 3) ax_helm_svv_factorized_full_kernel(T *__restrict__ au |
| for (int k=0;k< LX;++k) | |
| __syncthreads () | |
Variables | |
| __global__ void T *__restrict__ | av |
| __global__ void T *__restrict__ T *__restrict__ | aw |
| __global__ void T *__restrict__ T *__restrict__ const T *__restrict__ | u |
| __global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ | v |
| __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__ const T *__restrict__ const T *__restrict__ | dx |
| __global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dy |
| __global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dz |
| __global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | h1 |
| __global__ void T *__restrict__ 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__ | br |
| __global__ void T *__restrict__ 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__ | bs |
| __global__ void T *__restrict__ 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__ | bt |
| __global__ void T *__restrict__ 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 T *__restrict__ | h1_svv |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ | drdx |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ | drdy |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | drdz |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dsdx |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dsdy |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dsdz |
| __global__ void T *__restrict__ 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 T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ | dtdx |
| __global__ void T *__restrict__ 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 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__ | dtdy |
| __global__ void T *__restrict__ 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 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__ | dtdz |
| __global__ void T *__restrict__ 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 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__ | jacinv |
| __global__ void T *__restrict__ 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 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 T *__restrict__ | weight3 |
| __shared__ T | shdx [LX *P] = dx[ij] |
| __shared__ T | shdy [LX *P] = dy[ij] |
| __shared__ T | shdz [LX *P] = dz[ij] |
| __shared__ T | shbr [LX *P] = br[ij] |
| __shared__ T | shbs [LX *P] = bs[ij] |
| __shared__ T | shbt [LX *P] = bt[ij] |
| __shared__ T | shu [LX *P] |
| __shared__ T | shv [LX *P] |
| __shared__ T | shw [LX *P] |
| __shared__ T | shur [LX *LX] |
| __shared__ T | shus [LX *P] |
| __shared__ T | shvr [LX *LX] |
| __shared__ T | shvs [LX *P] |
| __shared__ T | shwr [LX *LX] |
| __shared__ T | shws [LX *P] |
| __shared__ T | shur_svv [LX *LX] |
| __shared__ T | shus_svv [LX *P] |
| __shared__ T | shvr_svv [LX *LX] |
| __shared__ T | shvs_svv [LX *P] |
| __shared__ T | shwr_svv [LX *LX] |
| __shared__ T | shws_svv [LX *P] |
| T | ru [LX] |
| T | rv [LX] |
| T | rw [LX] |
| T | ruw [LX] |
| T | rvw [LX] |
| T | rww [LX] |
| T | rut |
| T | rvt |
| T | rwt |
| T | rut_svv |
| T | rvt_svv |
| T | rwt_svv |
| const int | e = blockIdx.x |
| const int | j = threadIdx.y |
| const int | i = threadIdx.x |
| const int | ij = i + j*LX |
| const int | ij_p = i + j*P |
| const int | ele = e*LX*LX*LX |
| __global__ void __launch_bounds__ | ( | LX * | LX, |
| 3 | ) |
| __syncthreads | ( | ) |
| __device__ __forceinline__ void ax_helm_svv_factorized_stress_flux | ( | const T | ur, |
| const T | us, | ||
| const T | ut, | ||
| const T | vr, | ||
| const T | vs, | ||
| const T | vt, | ||
| const T | wr, | ||
| const T | ws, | ||
| const T | wt, | ||
| const T | drdx, | ||
| const T | drdy, | ||
| const T | drdz, | ||
| const T | dsdx, | ||
| const T | dsdy, | ||
| const T | dsdz, | ||
| const T | dtdx, | ||
| const T | dtdy, | ||
| const T | dtdz, | ||
| const T | dj, | ||
| T & | shur, | ||
| T & | shus, | ||
| T & | shvr, | ||
| T & | shvs, | ||
| T & | shwr, | ||
| T & | shws, | ||
| T & | rut, | ||
| T & | rvt, | ||
| T & | rwt ) |
Fused device kernel for the factorized SVV stress (full) operator
Evaluates, in a single pass over each element, the standard stress formulation built from D and h1, plus the factorized SVV stress built from the complementary derivatives B = (Br, Bs, Bt) and h1_svv. This mirrors ax_helm_svv_factorized_full_lx in the CPU backend: both contributions share the k-plane sweep, the geometric factors are loaded once, and (au, av, aw) are stored once (no read-modify-write of the output).
The kernel is kept separate from the autotuned ax_helm kernels on purpose, so that those keep their register footprint untouched. Within each k-plane the standard and SVV fluxes are formed one after the other, so only the three t-direction fluxes of each need to be live at the same time.
PAD selects a shared memory pitch of LX+1, removing bank conflicts when LX is a power of two. Map reference derivatives of (u, v, w) to the reference-space fluxes of the symmetric stress tensor, scaled by dj. The r- and s-fluxes are written to shared memory, the t-fluxes are returned in registers.
Definition at line 63 of file ax_helm_svv_factorized_full_kernel.h.
| for | ( | ) |
Definition at line 189 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ av |
Definition at line 110 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ aw |
Definition at line 111 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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__ br |
Definition at line 119 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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__ bs |
Definition at line 120 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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__ bt |
Definition at line 121 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ drdx |
Definition at line 123 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ drdy |
Definition at line 124 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ drdz |
Definition at line 125 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dsdx |
Definition at line 126 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dsdy |
Definition at line 127 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dsdz |
Definition at line 128 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dtdx |
Definition at line 129 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 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__ dtdy |
Definition at line 130 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 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__ dtdz |
Definition at line 131 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dx |
Definition at line 115 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dy |
Definition at line 116 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dz |
Definition at line 117 of file ax_helm_svv_factorized_full_kernel.h.
| const int e = blockIdx.x |
Definition at line 174 of file ax_helm_svv_factorized_full_kernel.h.
| const int ele = e*LX*LX*LX |
Definition at line 179 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ h1 |
Definition at line 118 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 T* __restrict__ h1_svv |
Definition at line 122 of file ax_helm_svv_factorized_full_kernel.h.
| const int i = threadIdx.x |
Definition at line 176 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 177 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 178 of file ax_helm_svv_factorized_full_kernel.h.
| const int j = threadIdx.y |
Definition at line 175 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 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__ jacinv |
Definition at line 132 of file ax_helm_svv_factorized_full_kernel.h.
| T ru[LX] |
Definition at line 163 of file ax_helm_svv_factorized_full_kernel.h.
| T rut |
Definition at line 171 of file ax_helm_svv_factorized_full_kernel.h.
| T rut_svv |
Definition at line 172 of file ax_helm_svv_factorized_full_kernel.h.
| T ruw[LX] |
Definition at line 167 of file ax_helm_svv_factorized_full_kernel.h.
| T rv[LX] |
Definition at line 164 of file ax_helm_svv_factorized_full_kernel.h.
| T rvt |
Definition at line 171 of file ax_helm_svv_factorized_full_kernel.h.
| T rvt_svv |
Definition at line 172 of file ax_helm_svv_factorized_full_kernel.h.
| T rvw[LX] |
Definition at line 168 of file ax_helm_svv_factorized_full_kernel.h.
| T rw[LX] |
Definition at line 165 of file ax_helm_svv_factorized_full_kernel.h.
| T rwt |
Definition at line 171 of file ax_helm_svv_factorized_full_kernel.h.
| T rwt_svv |
Definition at line 172 of file ax_helm_svv_factorized_full_kernel.h.
| T rww[LX] |
Definition at line 169 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 140 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 141 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 142 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 137 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 138 of file ax_helm_svv_factorized_full_kernel.h.
Definition at line 139 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shu[LX *P] |
Definition at line 144 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shur[LX *LX] |
Definition at line 149 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shur_svv[LX *LX] |
Definition at line 156 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shus[LX *P] |
Definition at line 150 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shus_svv[LX *P] |
Definition at line 157 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shv[LX *P] |
Definition at line 145 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shvr[LX *LX] |
Definition at line 151 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shvr_svv[LX *LX] |
Definition at line 158 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shvs[LX *P] |
Definition at line 152 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shvs_svv[LX *P] |
Definition at line 159 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shw[LX *P] |
Definition at line 146 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shwr[LX *LX] |
Definition at line 153 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shwr_svv[LX *LX] |
Definition at line 160 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shws[LX *P] |
Definition at line 154 of file ax_helm_svv_factorized_full_kernel.h.
| __shared__ T shws_svv[LX *P] |
Definition at line 161 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ u |
Definition at line 112 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ v |
Definition at line 113 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ w |
Definition at line 114 of file ax_helm_svv_factorized_full_kernel.h.
| __global__ void T* __restrict__ 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 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 T* __restrict__ weight3 |
Definition at line 133 of file ax_helm_svv_factorized_full_kernel.h.