Go to the source code of this file.
|
| template<const int N> |
| static void | set_tnsr3d_large_shmem_attr (const size_t shmem_size) |
| static int | cuda_tnsr3d_nthrds (const int nu, const int nv) |
| void | cuda_tnsr3d (void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *nel) |
| void | cuda_tnsr3d_el_list (void *v, int *nv, void *u, int *nu, void *A, void *Bt, void *Ct, int *elements, int *n_points) |
◆ CASE
Value: case N: \
<<<nblcks, nthrds, 0, stream>>>((
real *)
v, *nv, \
CUDA_CHECK(cudaGetLastError()); \
break
__global__ void const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
__global__ void tnsr3d_kernel(T *__restrict__ v, const int nv, const T *__restrict__ u, const int nu, const T *__restrict__ A, const T *__restrict__ Bt, const T *__restrict__ Ct)
◆ CASE2
Value: case N: \
<<<nblcks, nthrds, 0, stream>>>((
real *)
v, *nv, \
(int *) elements, *n_points); \
CUDA_CHECK(cudaGetLastError()); \
break
__global__ void tnsr3d_el_kernel(T *__restrict__ v, const int nv, const T *__restrict__ u, const int nu, const T *__restrict__ A, const T *__restrict__ Bt, const T *__restrict__ Ct, const int *elements, const int n_points)
◆ CASE_LARGE
Value: case N: { \
const size_t shmem_size = 2 * N * N * N *
sizeof(
real); \
set_tnsr3d_large_shmem_attr<N>(shmem_size); \
<<<nblcks, nthrds, shmem_size, stream>>>((
real *)
v, *nv, \
CUDA_CHECK(cudaGetLastError()); \
} \
break
__global__ void tnsr3d_kernel_large(T *__restrict__ v, const int nv, const T *__restrict__ u, const int nu, const T *__restrict__ A, const T *__restrict__ Bt, const T *__restrict__ Ct)
◆ max
Value: ({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
Definition at line 40 of file tensor.cu.
◆ cuda_tnsr3d()
| void cuda_tnsr3d |
( |
void * | v, |
|
|
int * | nv, |
|
|
void * | u, |
|
|
int * | nu, |
|
|
void * | A, |
|
|
void * | Bt, |
|
|
void * | Ct, |
|
|
int * | nel ) |
Fortran wrapper for tnsr3d
Definition at line 90 of file tensor.cu.
◆ cuda_tnsr3d_el_list()
| void cuda_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 144 of file tensor.cu.
◆ cuda_tnsr3d_nthrds()
| int cuda_tnsr3d_nthrds |
( |
const int | nu, |
|
|
const int | nv ) |
|
static |
◆ set_tnsr3d_large_shmem_attr()
template<const int N>
| void set_tnsr3d_large_shmem_attr |
( |
const size_t | shmem_size | ) |
|
|
static |