Neko  0.9.99
A portable framework for high-order spectral element flow simulations
opgrad_kernel.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T , const int LX, const int CHUNKS>
__global__ void opgrad_kernel_1d (T *__restrict__ ux, T *__restrict__ uy, T *__restrict__ uz, const T *__restrict__ u, const T *__restrict__ dx, const T *__restrict__ dy, const T *__restrict__ dz, const T *__restrict__ drdx, const T *__restrict__ dsdx, const T *__restrict__ dtdx, const T *__restrict__ drdy, const T *__restrict__ dsdy, const T *__restrict__ dtdy, const T *__restrict__ drdz, const T *__restrict__ dsdz, const T *__restrict__ dtdz, const T *__restrict__ w3)
 
template<typename T , const int LX>
__global__ void __launch_bounds__ (LX *LX, 3) opgrad_kernel_kstep(T *__restrict__ ux
 
 for (int k=0;k< LX;++k)
 
 __syncthreads ()
 

Variables

__global__ void T *__restrict__ uy
 
__global__ void T *__restrict__ T *__restrict__ uz
 
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ u
 
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ dx
 
__global__ void T *__restrict__ 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__ dz
 
__global__ void T *__restrict__ 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__ 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__ 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__ 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__ 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__ 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__ 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__ 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__ 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__ w3
 
__shared__ T shdx [LX *LX] = dx[ij]
 
__shared__ T shdy [LX *LX] = dy[ij]
 
__shared__ T shdz [LX *LX] = dz[ij]
 
const int e = blockIdx.x
 
const int j = threadIdx.y
 
const int i = threadIdx.x
 
const int ij = i + j * LX
 
const int ele = e*LX*LX*LX
 
ru [LX]
 

Function Documentation

◆ __launch_bounds__()

template<typename T , const int LX>
__global__ void __launch_bounds__ ( LX *  LX,
 
)

◆ __syncthreads()

__syncthreads ( )

◆ for()

for ( )

Definition at line 162 of file opgrad_kernel.h.

◆ opgrad_kernel_1d()

template<typename T , const int LX, const int CHUNKS>
__global__ void opgrad_kernel_1d ( T *__restrict__  ux,
T *__restrict__  uy,
T *__restrict__  uz,
const T *__restrict__  u,
const T *__restrict__  dx,
const T *__restrict__  dy,
const T *__restrict__  dz,
const T *__restrict__  drdx,
const T *__restrict__  dsdx,
const T *__restrict__  dtdx,
const T *__restrict__  drdy,
const T *__restrict__  dsdy,
const T *__restrict__  dtdy,
const T *__restrict__  drdz,
const T *__restrict__  dsdz,
const T *__restrict__  dtdz,
const T *__restrict__  w3 
)

Device kernel for convective terms

Definition at line 42 of file opgrad_kernel.h.

Here is the call graph for this function:

Variable Documentation

◆ drdx

__global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ drdx

Definition at line 132 of file opgrad_kernel.h.

◆ 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__ drdy

Definition at line 135 of file opgrad_kernel.h.

◆ 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__ drdz

Definition at line 138 of file opgrad_kernel.h.

◆ 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__ dsdx

Definition at line 133 of file opgrad_kernel.h.

◆ 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__ dsdy

Definition at line 136 of file opgrad_kernel.h.

◆ 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__ dsdz

Definition at line 139 of file opgrad_kernel.h.

◆ 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__ dtdx

Definition at line 134 of file opgrad_kernel.h.

◆ 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__ dtdy

Definition at line 137 of file opgrad_kernel.h.

◆ 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__ dtdz

Definition at line 140 of file opgrad_kernel.h.

◆ dx

__global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ dx

Definition at line 129 of file opgrad_kernel.h.

◆ dy

__global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dy

Definition at line 130 of file opgrad_kernel.h.

◆ dz

__global__ void T* __restrict__ T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dz

Definition at line 131 of file opgrad_kernel.h.

◆ e

const int e = blockIdx.x

Definition at line 149 of file opgrad_kernel.h.

◆ ele

const int ele = e*LX*LX*LX

Definition at line 153 of file opgrad_kernel.h.

◆ i

const int i = threadIdx.x

Definition at line 151 of file opgrad_kernel.h.

◆ ij

const int ij = i + j * LX

Definition at line 152 of file opgrad_kernel.h.

◆ j

const int j = threadIdx.y

Definition at line 150 of file opgrad_kernel.h.

◆ ru

T ru[LX]

Definition at line 159 of file opgrad_kernel.h.

◆ shdx

shdx[ij] = dx[ij]

Definition at line 145 of file opgrad_kernel.h.

◆ shdy

shdy[ij] = dy[ij]

Definition at line 146 of file opgrad_kernel.h.

◆ shdz

shdz[ij] = dz[ij]

Definition at line 147 of file opgrad_kernel.h.

◆ u

__global__ void T* __restrict__ T* __restrict__ const T* __restrict__ u

Definition at line 128 of file opgrad_kernel.h.

◆ uy

__global__ void T* __restrict__ uy

Definition at line 126 of file opgrad_kernel.h.

◆ uz

__global__ void T* __restrict__ T* __restrict__ uz

Definition at line 127 of file opgrad_kernel.h.

◆ w3

__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__ w3
Initial value:
{
__shared__ T shu[LX * LX]
__shared__ T shu[LX *LX]

Definition at line 141 of file opgrad_kernel.h.