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

Go to the source code of this file.

Macros

#define RST_CASE(LX)

Functions

template<typename T, typename xT, const int LX, const int CHUNKS>
__global__ void find_rst_legendre_kernel (T *__restrict__ rst, const T *pt_x, const T *pt_y, const T *pt_z, const T *x_hat, const T *y_hat, const T *z_hat, T *__restrict__ resx, T *__restrict__ resy, T *__restrict__ resz, const int *el_ids, const int n_pt, T tol, T *__restrict__ conv_pts)
void hip_find_rst_legendre (void *rst, void *pt_x, void *pt_y, void *pt_z, void *x_hat, void *y_hat, void *z_hat, void *resx, void *resy, void *resz, int *lx, void *el_ids, int *n_pt, real *tol, void *conv_pts)

Macro Definition Documentation

◆ RST_CASE

#define RST_CASE ( LX)
Value:
case LX: \
hipLaunchKernelGGL( \
nblcks, nthrds, 0, stream, \
(real *) rst,(real *) pt_x, (real *) pt_y, (real *) pt_z, \
(real *) x_hat, (real *) y_hat, (real *) z_hat, \
(real *) resx, (real *) resy, (real *) resz, (int *) el_ids, \
*n_pt, *tol, (real *) conv_pts); \
HIP_CHECK(hipGetLastError()); \
break
double real
__global__ void find_rst_legendre_kernel(T *__restrict__ rst, const T *pt_x, const T *pt_y, const T *pt_z, const T *x_hat, const T *y_hat, const T *z_hat, T *__restrict__ resx, T *__restrict__ resy, T *__restrict__ resz, const int *el_ids, const int n_pt, T tol, T *__restrict__ conv_pts)

Function Documentation

◆ find_rst_legendre_kernel()

template<typename T, typename xT, const int LX, const int CHUNKS>
__global__ void find_rst_legendre_kernel ( T *__restrict__ rst,
const T * pt_x,
const T * pt_y,
const T * pt_z,
const T * x_hat,
const T * y_hat,
const T * z_hat,
T *__restrict__ resx,
T *__restrict__ resy,
T *__restrict__ resz,
const int * el_ids,
const int n_pt,
T tol,
T *__restrict__ conv_pts )

Device kernel for finding rst coordinates

Definition at line 45 of file local_interpolation.hip.

Here is the call graph for this function:

◆ hip_find_rst_legendre()

void hip_find_rst_legendre ( void * rst,
void * pt_x,
void * pt_y,
void * pt_z,
void * x_hat,
void * y_hat,
void * z_hat,
void * resx,
void * resy,
void * resz,
int * lx,
void * el_ids,
int * n_pt,
real * tol,
void * conv_pts )

Fortran wrapper for generating geometric factors

Definition at line 400 of file local_interpolation.hip.