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

Go to the source code of this file.

Macros

#define max(a, b)
 
#define CASE(N)
 
#define CASE2(N)
 

Functions

void hip_tnsr3d (void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *nel)
 
void hip_tnsr3d_el_list (void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *elements, int *n_points)
 

Macro Definition Documentation

◆ CASE

#define CASE (   N)
Value:
case N: \
hipLaunchKernelGGL(HIP_KERNEL_NAME(tnsr3d_kernel<real, N>), \
nblcks, nthrds, 0, \
(hipStream_t) glb_cmd_queue, \
(real *) v, *nv, \
(real *) u, *nu, \
(real *) A, (real *) Bt, (real *) Ct); \
HIP_CHECK(hipGetLastError()); \
break
__global__ void const T *__restrict__ u
Definition: conv1_kernel.h:132
__global__ void const T *__restrict__ const T *__restrict__ v
double real
Definition: device_config.h:12
void * glb_cmd_queue

◆ CASE2

#define CASE2 (   N)
Value:
case N: \
hipLaunchKernelGGL(HIP_KERNEL_NAME(tnsr3d_el_kernel<real, N>), \
nblcks, nthrds, 0, \
(hipStream_t) glb_cmd_queue, \
(real *) v, *nv, \
(real *) u, *nu, \
(real *) A, (real *) Bt, (real *) Ct, \
(int *) elements, *n_points); \
HIP_CHECK(hipGetLastError()); \
break

◆ max

#define max (   a,
 
)
Value:
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })

Definition at line 41 of file tensor.hip.

Function Documentation

◆ hip_tnsr3d()

void hip_tnsr3d ( void *  v,
int *  nv,
void *  u,
int *  nu,
void *  A,
void *  Bt,
void *  Ct,
int *  nel 
)

Fortran wrapper for tnsr3d

Definition at line 50 of file tensor.hip.

◆ hip_tnsr3d_el_list()

void hip_tnsr3d_el_list ( void *  v,
int *  nv,
void *  u,
int *  nu,
void *  A,
void *  Bt,
void *  Ct,
int *  elements,
int *  n_points 
)

Fortran wrapper for tnsr3d

Definition at line 93 of file tensor.hip.