Neko 1.99.10
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
coef.hip File Reference
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <device/device_config.h>
#include <device/hip/check.h>
#include "coef_kernel.h"
Include dependency graph for coef.hip:

Go to the source code of this file.

Macros

#define GEO_CASE(LX)
#define DXYZDRST_CASE(LX)
#define AREA_CASE(LX)

Functions

void hip_coef_generate_geo (void *G11, void *G12, void *G13, void *G22, void *G23, void *G33, void *drdx, void *drdy, void *drdz, void *dsdx, void *dsdy, void *dsdz, void *dtdx, void *dtdy, void *dtdz, void *jacinv, void *w3, int *nel, int *lx, int *gdim)
void hip_coef_generate_dxyzdrst (void *drdx, void *drdy, void *drdz, void *dsdx, void *dsdy, void *dsdz, void *dtdx, void *dtdy, void *dtdz, void *dxdr, void *dydr, void *dzdr, void *dxds, void *dyds, void *dzds, void *dxdt, void *dydt, void *dzdt, void *dx, void *dy, void *dz, void *x, void *y, void *z, void *jacinv, void *jac, int *lx, int *nel)
void hip_coef_generate_mass (void *B, void *Binv, void *jac, void *w3, int *lxyz, int *nel)
void hip_coef_generate_area_and_normal (void *area, void *nx, void *ny, void *nz, void *dxdr, void *dydr, void *dzdr, void *dxds, void *dyds, void *dzds, void *dxdt, void *dydt, void *dzdt, void *wx, void *wy, void *wz, int *lx, int *nel, real eps)
void hip_coef_get_normal (void *normal_x, void *normal_y, void *normal_z, void *nx, void *ny, void *nz, void *i_idx, void *j_idx, void *k_idx, void *e_idx, void *facet, int *lx, int *n)

Macro Definition Documentation

◆ AREA_CASE

#define AREA_CASE ( LX)
Value:
case LX: \
hipLaunchKernelGGL( \
nblcks, nthrds, 0, (hipStream_t) glb_cmd_queue, \
(real *) area, (real *) nx, (real *) ny, (real *) nz, \
(real *) dxdr, (real *) dydr, (real *) dzdr, \
(real *) dxds, (real *) dyds, (real *) dzds, \
(real *) dxdt, (real *) dydt, (real *) dzdt, \
(real *) wx, (real *) wy, (real *) wz, eps); \
HIP_CHECK(hipGetLastError()); \
break
__global__ void coef_generate_area_and_normal_kernel(T *__restrict__ area, T *__restrict__ nx, T *__restrict__ ny, T *__restrict__ nz, const T *__restrict__ dxdr, const T *__restrict__ dydr, const T *__restrict__ dzdr, const T *__restrict__ dxds, const T *__restrict__ dyds, const T *__restrict__ dzds, const T *__restrict__ dxdt, const T *__restrict__ dydt, const T *__restrict__ dzdt, const T *__restrict__ wx, const T *__restrict__ wy, const T *__restrict__ wz, const T eps)
double real
void * glb_cmd_queue

◆ DXYZDRST_CASE

#define DXYZDRST_CASE ( LX)
Value:
case LX: \
hipLaunchKernelGGL( \
nblcks_dxyz, nthrds, 0, (hipStream_t) glb_cmd_queue, \
(real *) dxdr, (real *) dydr, (real *) dzdr, \
(real *) dxds, (real *) dyds, (real *) dzds, \
(real *) dxdt, (real *) dydt, (real *) dzdt, \
(real *) dx, (real *) dy, (real *) dz, \
(real *) x, (real *) y, (real *) z); \
HIP_CHECK(hipGetLastError()); \
break
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dz
__global__ void const T *__restrict__ const T *__restrict__ dx
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ dy
__global__ void const T *__restrict__ x
__global__ void coef_generate_dxyz_kernel(T *__restrict__ dxdr, T *__restrict__ dydr, T *__restrict__ dzdr, T *__restrict__ dxds, T *__restrict__ dyds, T *__restrict__ dzds, T *__restrict__ dxdt, T *__restrict__ dydt, T *__restrict__ dzdt, const T *__restrict__ dx, const T *__restrict__ dy, const T *__restrict__ dz, const T *__restrict__ x, const T *__restrict__ y, const T *__restrict__ z)

◆ GEO_CASE

#define GEO_CASE ( LX)
Value:
case LX: \
hipLaunchKernelGGL( \
nblcks, nthrds, 0, (hipStream_t) glb_cmd_queue, \
(real *) G11, (real *) G12, (real *) G13, \
(real *) G22, (real *) G23, (real *) G33, \
(real *) drdx, (real *) drdy, (real *) drdz, \
(real *) dsdx, (real *) dsdy, (real *) dsdz, \
(real *) dtdx, (real *) dtdy, (real *) dtdz, \
(real *) jacinv, (real *) w3, *gdim); \
HIP_CHECK(hipGetLastError()); \
break
__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__ 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__ 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__ 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__ const T *__restrict__ const T *__restrict__ const T *__restrict__ jacinv
__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__ 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__ 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__ 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__ 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__ 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__ 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__ w3
__global__ void coef_generate_geo_kernel(T *__restrict__ G11, T *__restrict__ G12, T *__restrict__ G13, T *__restrict__ G22, T *__restrict__ G23, T *__restrict__ G33, const T *__restrict__ drdx, const T *__restrict__ drdy, const T *__restrict__ drdz, const T *__restrict__ dsdx, const T *__restrict__ dsdy, const T *__restrict__ dsdz, const T *__restrict__ dtdx, const T *__restrict__ dtdy, const T *__restrict__ dtdz, const T *__restrict__ jacinv, const T *__restrict__ w3, const int gdim)
Definition coef_kernel.h:41

Function Documentation

◆ hip_coef_generate_area_and_normal()

void hip_coef_generate_area_and_normal ( void * area,
void * nx,
void * ny,
void * nz,
void * dxdr,
void * dydr,
void * dzdr,
void * dxds,
void * dyds,
void * dzds,
void * dxdt,
void * dydt,
void * dzdt,
void * wx,
void * wy,
void * wz,
int * lx,
int * nel,
real eps )

Fortran wrapper for generating facet area and surface normals

Definition at line 185 of file coef.hip.

◆ hip_coef_generate_dxyzdrst()

void hip_coef_generate_dxyzdrst ( void * drdx,
void * drdy,
void * drdz,
void * dsdx,
void * dsdy,
void * dsdz,
void * dtdx,
void * dtdy,
void * dtdz,
void * dxdr,
void * dydr,
void * dzdr,
void * dxds,
void * dyds,
void * dzds,
void * dxdt,
void * dydt,
void * dzdt,
void * dx,
void * dy,
void * dz,
void * x,
void * y,
void * z,
void * jacinv,
void * jac,
int * lx,
int * nel )

Fortran wrapper for generating geometric factors

Definition at line 98 of file coef.hip.

Here is the call graph for this function:

◆ hip_coef_generate_geo()

void hip_coef_generate_geo ( void * G11,
void * G12,
void * G13,
void * G22,
void * G23,
void * G33,
void * drdx,
void * drdy,
void * drdz,
void * dsdx,
void * dsdy,
void * dsdz,
void * dtdx,
void * dtdy,
void * dtdz,
void * jacinv,
void * w3,
int * nel,
int * lx,
int * gdim )

Fortran wrapper for generating geometric factors

Definition at line 46 of file coef.hip.

◆ hip_coef_generate_mass()

void hip_coef_generate_mass ( void * B,
void * Binv,
void * jac,
void * w3,
int * lxyz,
int * nel )

Fortran wrapper for generating mass matrix

Definition at line 166 of file coef.hip.

Here is the call graph for this function:

◆ hip_coef_get_normal()

void hip_coef_get_normal ( void * normal_x,
void * normal_y,
void * normal_z,
void * nx,
void * ny,
void * nz,
void * i_idx,
void * j_idx,
void * k_idx,
void * e_idx,
void * facet,
int * lx,
int * n )

Fortran wrapper for retrieving facet normals.

Definition at line 236 of file coef.hip.

Here is the call graph for this function: