Neko  0.8.99
A portable framework for high-order spectral element flow simulations
pc_jacobi.hip File Reference
#include <hip/hip_runtime.h>
#include <device/hip/check.h>
#include <device/device_config.h>
Include dependency graph for pc_jacobi.hip:

Go to the source code of this file.

Macros

#define CASE(N)
 

Functions

template<typename T , const int LX>
__global__ void jacobi_kernel (T *__restrict__ du, const T *__restrict__ dxt, const T *__restrict__ dyt, const T *__restrict__ dzt, const T *__restrict__ G11, const T *__restrict__ G22, const T *__restrict__ G33, const T *__restrict__ G12, const T *__restrict__ G13, const T *__restrict__ G23, const int nel)
 
void hip_jacobi_update (void *d, void *dxt, void *dyt, void *dzt, void *G11, void *G22, void *G33, void *G12, void *G13, void *G23, int *nel, int *lxp)
 

Macro Definition Documentation

◆ CASE

#define CASE (   N)
Value:
case N:\
hipLaunchKernelGGL(HIP_KERNEL_NAME( jacobi_kernel<real, N> ),\
blocks, threads, 0, (hipStream_t) glb_cmd_queue,\
(real *) d,\
(real *) dxt, (real *) dyt, (real *) dzt,\
(real *) G11, (real *) G22, (real *) G33,\
(real *) G12, (real *) G13, (real *) G23,\
*nel);\
break
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dzt
Definition: cdtp_kernel.h:112
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dyt
Definition: cdtp_kernel.h:111
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dxt
Definition: cdtp_kernel.h:110
double real
Definition: device_config.h:12
void * glb_cmd_queue

Function Documentation

◆ hip_jacobi_update()

void hip_jacobi_update ( void *  d,
void *  dxt,
void *  dyt,
void *  dzt,
void *  G11,
void *  G22,
void *  G33,
void *  G12,
void *  G13,
void *  G23,
int *  nel,
int *  lxp 
)

Definition at line 106 of file pc_jacobi.hip.

◆ jacobi_kernel()

template<typename T , const int LX>
__global__ void jacobi_kernel ( T *__restrict__  du,
const T *__restrict__  dxt,
const T *__restrict__  dyt,
const T *__restrict__  dzt,
const T *__restrict__  G11,
const T *__restrict__  G22,
const T *__restrict__  G33,
const T *__restrict__  G12,
const T *__restrict__  G13,
const T *__restrict__  G23,
const int  nel 
)

Definition at line 40 of file pc_jacobi.hip.