Neko 1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
opr_convect_scalar.cu File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "convect_scalar_kernel.h"
#include <device/device_config.h>
#include <device/cuda/check.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_convect_scalar (void *du, void *u, void *cr, void *cs, void *ct, void *dx, void *dy, void *dz, int *nel, int *lx)
 
void cuda_convect_scalar (void *du, void *u, void *cr, void *cs, void *ct, void *dx, void *dy, void *dz, int *nel, int *lx)
 

Macro Definition Documentation

◆ CASE

#define CASE (   LX)
Value:
case LX: \
if(autotune[LX] == 0 ) { \
cr, cs, ct, \
dx, dy, dz, \
nel, lx); \
} else if (autotune[LX] == 1 ) { \
} else if (autotune[LX] == 2 ) { \
} \
break
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dx
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dz
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ dy
__global__ void const T *__restrict__ const T *__restrict__ cr
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ cs
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ ct
__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, stream>>> \
((real *) du, (real *) u, \
(real *) cr, (real *) cs, (real *) ct, \
(real *) dx, (real *) dy, (real *) dz); \
double real

◆ CASE_KSTEP

#define CASE_KSTEP (   LX)
Value:
<<<nblcks, nthrds_kstep, 0, stream>>> \
((real *) du, (real *) u, \
(real *) cr, (real *) cs, (real *) ct, \
(real *) dx, (real *) dy, (real *) dz); \

◆ CASE_LARGE

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

Function Documentation

◆ cuda_convect_scalar()

void cuda_convect_scalar ( void du,
void u,
void cr,
void cs,
void ct,
void dx,
void dy,
void dz,
int nel,
int lx 
)

Fortran wrapper for device cuda convective terms

Definition at line 57 of file opr_convect_scalar.cu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tune_convect_scalar()

template<const int >
int tune_convect_scalar ( void du,
void u,
void cr,
void cs,
void ct,
void dx,
void dy,
void dz,
int nel,
int lx 
)

Definition at line 142 of file opr_convect_scalar.cu.

Here is the call graph for this function: