Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
convect_scalar_kernel.h File Reference
#include "elem_block.h"
Include dependency graph for convect_scalar_kernel.h:
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 convect_scalar_kernel_1d (T *__restrict__ du, const T *__restrict__ u, const T *__restrict__ cr, const T *__restrict__ cs, const T *__restrict__ ct, const T *__restrict__ dx, const T *__restrict__ dy, const T *__restrict__ dz)
template<typename T, const int LX, const int EB>
__global__ void __launch_bounds__ ((LX *LX *EB)) convect_scalar_kernel_kstep(T *__restrict__ du
 if (eb==0)
 for (int k=0;k< LX;++k)
 __syncthreads ()

Variables

__global__ void const T *__restrict__ u
__global__ void const T *__restrict__ const T *__restrict__ cr
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ cs
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ ct
__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 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 rcr [LX]
T rcs [LX]
T rct [LX]

Function Documentation

◆ __launch_bounds__()

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

◆ __syncthreads()

__syncthreads ( )
Here is the caller graph for this function:

◆ convect_scalar_kernel_1d()

template<typename T, const int LX, const int CHUNKS>
__global__ void convect_scalar_kernel_1d ( T *__restrict__ du,
const T *__restrict__ u,
const T *__restrict__ cr,
const T *__restrict__ cs,
const T *__restrict__ ct,
const T *__restrict__ dx,
const T *__restrict__ dy,
const T *__restrict__ dz )

Device kernel for convect_scalar

Definition at line 44 of file convect_scalar_kernel.h.

Here is the call graph for this function:

◆ for()

for ( )

Definition at line 160 of file convect_scalar_kernel.h.

◆ if()

if ( eb = = 0)

Definition at line 148 of file convect_scalar_kernel.h.

Variable Documentation

◆ active

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

Definition at line 140 of file convect_scalar_kernel.h.

◆ cr

__global__ void const T* __restrict__ const T* __restrict__ cr

Definition at line 114 of file convect_scalar_kernel.h.

◆ cs

__global__ void const T* __restrict__ const T* __restrict__ const T* __restrict__ cs

Definition at line 115 of file convect_scalar_kernel.h.

◆ ct

__global__ void const T* __restrict__ const T* __restrict__ const T* __restrict__ const T* __restrict__ ct

Definition at line 116 of file convect_scalar_kernel.h.

◆ dx

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

Definition at line 117 of file convect_scalar_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 118 of file convect_scalar_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 119 of file convect_scalar_kernel.h.

◆ e

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

Definition at line 141 of file convect_scalar_kernel.h.

◆ e_blk

const int e_blk = blockIdx.x * EB + eb

Definition at line 136 of file convect_scalar_kernel.h.

◆ eb

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

Definition at line 135 of file convect_scalar_kernel.h.

◆ ele

const int ele = e*LX*LX*LX

Definition at line 146 of file convect_scalar_kernel.h.

◆ i

const int i = threadIdx.x

Definition at line 144 of file convect_scalar_kernel.h.

◆ ij

const int ij = i + j * LX

Definition at line 145 of file convect_scalar_kernel.h.

◆ j

const int j = threadIdx.y

Definition at line 143 of file convect_scalar_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 int nelv
Initial value:
{
__shared__ T shu[EB * LX * LX]
__shared__ T shu[EB *LX *LX]

Definition at line 120 of file convect_scalar_kernel.h.

◆ rcr

T rcr[LX]

Definition at line 155 of file convect_scalar_kernel.h.

◆ rcs

T rcs[LX]

Definition at line 156 of file convect_scalar_kernel.h.

◆ rct

T rct[LX]

Definition at line 157 of file convect_scalar_kernel.h.

◆ ru

T ru[LX]

Definition at line 154 of file convect_scalar_kernel.h.

◆ sh

const int sh = eb * LX * LX

Definition at line 142 of file convect_scalar_kernel.h.

◆ shdx

__shared__ T shdx[LX *LX]

Definition at line 124 of file convect_scalar_kernel.h.

◆ shdy

__shared__ T shdy[LX *LX]

Definition at line 125 of file convect_scalar_kernel.h.

◆ shdz

__shared__ T shdz[LX *LX]

Definition at line 126 of file convect_scalar_kernel.h.

◆ u

__global__ void const T* __restrict__ u

Definition at line 113 of file convect_scalar_kernel.h.