Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
opr_cdtp.hip File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <device/device_config.h>
#include <device/hip/check.h>
#include "cdtp_kernel.h"
#include <common/neko_log.h>

Go to the source code of this file.

Macros

#define CASE_1D(LX)
 
#define CASE_KSTEP(LX)
 
#define CASE(LX)
 
#define CASE_LARGE(LX)
 

Functions

template<const int >
int tune_cdtp (void *dtx, void *x, void *dr, void *ds, void *dt, void *dxt, void *dyt, void *dzt, void *w3, int *nel, int *lx)
 
void hip_cdtp (void *dtx, void *x, void *dr, void *ds, void *dt, void *dxt, void *dyt, void *dzt, void *w3, int *nel, int *lx)
 

Macro Definition Documentation

◆ CASE

#define CASE (   LX)
Value:
case LX: \
if(autotune[LX] == 0 ) { \
dr, ds, dt, \
dxt, dyt, dzt, \
w3, nel, lx); \
} else if (autotune[LX] == 1 ) { \
} else if (autotune[LX] == 2 ) { \
} \
break
__global__ void const T *__restrict__ const T *__restrict__ dr
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ ds
__global__ void const T *__restrict__ x
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dt
__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 const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dzt
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dyt
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dxt
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)

◆ CASE_1D

#define CASE_1D (   LX)
Value:
nblcks, nthrds_1d, 0, (hipStream_t) glb_cmd_queue, \
(real *) dtx, (real *) x, \
(real *) dr, (real *) ds, (real *) dt, \
(real *) dxt, (real *) dyt, (real *) dzt, \
(real *) w3); \
double real

◆ CASE_KSTEP

#define CASE_KSTEP (   LX)
Value:

◆ CASE_LARGE

#define CASE_LARGE (   LX)
Value:
case LX: \
break

Function Documentation

◆ hip_cdtp()

void hip_cdtp ( void dtx,
void x,
void dr,
void ds,
void dt,
void dxt,
void dyt,
void dzt,
void w3,
int nel,
int lx 
)

Fortran wrapper for device hip \( D^T X \)

Definition at line 58 of file opr_cdtp.hip.

Here is the call graph for this function:

◆ tune_cdtp()

template<const int >
int tune_cdtp ( void dtx,
void x,
void dr,
void ds,
void dt,
void dxt,
void dyt,
void dzt,
void w3,
int nel,
int lx 
)

Definition at line 144 of file opr_cdtp.hip.

Here is the call graph for this function: