Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
cfl_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 >
__inline__ __device__ T cfl_reduce_warp (T val)
 
template<typename T >
__global__ void cfl_reduce_kernel (T *bufred, const int n)
 
template<typename T , const int LX, const int CHUNKS>
__global__ void cfl_kernel (const T dt, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, 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__ dr_inv, const T *__restrict__ ds_inv, const T *__restrict__ dt_inv, const T *__restrict__ jacinv, T *__restrict__ cfl_h)
 

Function Documentation

◆ cfl_kernel()

template<typename T , const int LX, const int CHUNKS>
__global__ void cfl_kernel ( const T  dt,
const T *__restrict__  u,
const T *__restrict__  v,
const T *__restrict__  w,
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__  dr_inv,
const T *__restrict__  ds_inv,
const T *__restrict__  dt_inv,
const T *__restrict__  jacinv,
T *__restrict__  cfl_h 
)

Device kernel for CFL

Definition at line 87 of file cfl_kernel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cfl_reduce_kernel()

template<typename T >
__global__ void cfl_reduce_kernel ( T bufred,
const int  n 
)

CFL reduction kernel

Definition at line 55 of file cfl_kernel.h.

Here is the call graph for this function:

◆ cfl_reduce_warp()

template<typename T >
__inline__ __device__ T cfl_reduce_warp ( T  val)

Warp shuffle reduction

Definition at line 42 of file cfl_kernel.h.

Here is the call graph for this function: