Neko 1.99.10
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
conv1_kernel.h File Reference
#include "mfma_kernel.h"
#include "elem_block.h"
Include dependency graph for conv1_kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  conv1_mfma_dispatch< T, LX, NWF, TILE >

Functions

template<typename T, const int LX, const int CHUNKS>
__global__ void conv1_kernel_1d (T *__restrict__ du, const T *__restrict__ u, const T *__restrict__ vx, const T *__restrict__ vy, const T *__restrict__ vz, 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__ jacinv)
template<typename T, const int LX, const int EB>
__global__ void __launch_bounds__ ((LX *LX *EB)) conv1_kernel_kstep(T *__restrict__ du
 if (eb==0)
 for (int k=0;k< LX;++k)
 __syncthreads ()
template<typename T, const int LX, const int NWF, const int TILE>
__global__ void __launch_bounds__ (64 *NWF) conv1_kernel_mfma(T *__restrict__ du

Variables

__global__ void const T *__restrict__ u
__global__ void const T *__restrict__ const T *__restrict__ vx
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ vy
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ vz
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dx
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dy
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dz
__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__ drdx
__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__ const T *__restrict__ dsdx
__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__ const T *__restrict__ const T *__restrict__ dtdx
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ drdy
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dsdy
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dtdy
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ drdz
__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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dsdz
__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__ 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 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 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 int nelv
__shared__ T shdx [LX *LX]
__shared__ T shdy [LX *LX]
__shared__ T shdz [LX *LX]
const int eb = (EB == 1) ? 0 : threadIdx.z
const int e_blk = blockIdx.x * EB + eb
const bool active = (EB == 1) ? true : (e_blk < nelv)
const int e = active ? e_blk : (nelv - 1)
const int sh = eb * LX * LX
const int j = threadIdx.y
const int i = threadIdx.x
const int ij = i + j * LX
const int ele = e*LX*LX*LX
T ru [LX]
T rvx [LX]
T rvy [LX]
T rvz [LX]
T rjacinv [LX]

Function Documentation

◆ __launch_bounds__() [1/2]

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

◆ __launch_bounds__() [2/2]

template<typename T, const int LX, const int NWF, const int TILE>
__global__ void __launch_bounds__ ( 64 * NWF)
Here is the call graph for this function:

◆ __syncthreads()

__syncthreads ( )

◆ conv1_kernel_1d()

template<typename T, const int LX, const int CHUNKS>
__global__ void conv1_kernel_1d ( T *__restrict__ du,
const T *__restrict__ u,
const T *__restrict__ vx,
const T *__restrict__ vy,
const T *__restrict__ vz,
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__ jacinv )

Device kernel for convective terms

Definition at line 47 of file conv1_kernel.h.

Here is the call graph for this function:

◆ for()

for ( )

Definition at line 195 of file conv1_kernel.h.

◆ if()

if ( eb = = 0)

Definition at line 182 of file conv1_kernel.h.

Variable Documentation

◆ active

const bool active = (EB == 1) ? true : (e_blk < nelv)

Definition at line 174 of file conv1_kernel.h.

◆ drdx

__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__ drdx

Definition at line 144 of file conv1_kernel.h.

◆ drdy

__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__ const T* __restrict__ const T* __restrict__ const T* __restrict__ drdy

Definition at line 147 of file conv1_kernel.h.

◆ drdz

__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__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ drdz

Definition at line 150 of file conv1_kernel.h.

◆ dsdx

__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__ const T* __restrict__ dsdx

Definition at line 145 of file conv1_kernel.h.

◆ dsdy

__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__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dsdy

Definition at line 148 of file conv1_kernel.h.

◆ dsdz

__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__ 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 151 of file conv1_kernel.h.

◆ dtdx

__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__ const T* __restrict__ const T* __restrict__ dtdx

Definition at line 146 of file conv1_kernel.h.

◆ dtdy

__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__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ dtdy

Definition at line 149 of file conv1_kernel.h.

◆ dtdz

__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__ 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 152 of file conv1_kernel.h.

◆ dx

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

Definition at line 141 of file conv1_kernel.h.

◆ dy

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

Definition at line 142 of file conv1_kernel.h.

◆ dz

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

Definition at line 143 of file conv1_kernel.h.

◆ e

const int e = active ? e_blk : (nelv - 1)

Definition at line 175 of file conv1_kernel.h.

◆ e_blk

const int e_blk = blockIdx.x * EB + eb

Definition at line 170 of file conv1_kernel.h.

◆ eb

const int eb = (EB == 1) ? 0 : threadIdx.z

Definition at line 169 of file conv1_kernel.h.

◆ ele

const int ele = e*LX*LX*LX

Definition at line 180 of file conv1_kernel.h.

◆ i

const int i = threadIdx.x

Definition at line 178 of file conv1_kernel.h.

◆ ij

const int ij = i + j * LX

Definition at line 179 of file conv1_kernel.h.

◆ j

const int j = threadIdx.y

Definition at line 177 of file conv1_kernel.h.

◆ jacinv

__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__ 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 153 of file conv1_kernel.h.

◆ nelv

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

Definition at line 154 of file conv1_kernel.h.

◆ rjacinv

T rjacinv[LX]

Definition at line 192 of file conv1_kernel.h.

◆ ru

T ru[LX]

Definition at line 188 of file conv1_kernel.h.

◆ rvx

T rvx[LX]

Definition at line 189 of file conv1_kernel.h.

◆ rvy

T rvy[LX]

Definition at line 190 of file conv1_kernel.h.

◆ rvz

T rvz[LX]

Definition at line 191 of file conv1_kernel.h.

◆ sh

const int sh = eb * LX * LX

Definition at line 176 of file conv1_kernel.h.

◆ shdx

__shared__ T shdx[LX *LX]

Definition at line 158 of file conv1_kernel.h.

◆ shdy

__shared__ T shdy[LX *LX]

Definition at line 159 of file conv1_kernel.h.

◆ shdz

__shared__ T shdz[LX *LX]

Definition at line 160 of file conv1_kernel.h.

◆ u

__global__ void const T* __restrict__ u

Definition at line 137 of file conv1_kernel.h.

◆ vx

__global__ void const T* __restrict__ const T* __restrict__ vx

Definition at line 138 of file conv1_kernel.h.

◆ vy

__global__ void const T* __restrict__ const T* __restrict__ const T* __restrict__ vy

Definition at line 139 of file conv1_kernel.h.

◆ vz

__global__ void const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ vz

Definition at line 140 of file conv1_kernel.h.