Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
cfl_kernel.h File Reference
#include "wave.h"
Include dependency graph for cfl_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>
__inline__ __device__ T cfl_reduce_warp (T val)
template<typename T>
__global__ void cfl_reduce_kernel (T *bufred, const int n)
template<typename D, typename T, const int LX, const int CHUNKS>
__global__ void cfl_kernel (const D 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, D *__restrict__ cfl_h)

Function Documentation

◆ cfl_kernel()

template<typename D, typename T, const int LX, const int CHUNKS>
__global__ void cfl_kernel ( const D 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,
D *__restrict__ cfl_h )

Device kernel for CFL

Definition at line 95 of file cfl_kernel.h.

Here is the call 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 63 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

See reduce_warp() in math_kernel.h: the leading half wave shuffle only exists on a 64 lane wavefront.

Definition at line 47 of file cfl_kernel.h.