xref: /libCEED/backends/cuda-shared/ceed-cuda-shared.h (revision 0be03a92683d319639505fd4b3dce80b3bae318f)
1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3 //
4 // SPDX-License-Identifier: BSD-2-Clause
5 //
6 // This file is part of CEED:  http://github.com/ceed
7 
8 #ifndef _ceed_cuda_shared_h
9 #define _ceed_cuda_shared_h
10 
11 #include <ceed/ceed.h>
12 #include <ceed/backend.h>
13 #include <cuda.h>
14 #include "../cuda/ceed-cuda-common.h"
15 
16 typedef struct {
17   CUmodule module;
18   CUfunction Interp;
19   CUfunction InterpTranspose;
20   CUfunction Grad;
21   CUfunction GradTranspose;
22   CUfunction Weight;
23   CeedScalar *d_interp_1d;
24   CeedScalar *d_grad_1d;
25   CeedScalar *d_collo_grad_1d;
26   CeedScalar *d_q_weight_1d;
27   CeedScalar *c_B;
28   CeedScalar *c_G;
29 } CeedBasis_Cuda_shared;
30 
31 CEED_INTERN int CeedBasisCreateTensorH1_Cuda_shared(CeedInt dim, CeedInt P_1d,
32     CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
33     const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, CeedBasis basis);
34 
35 #endif // _ceed_cuda_shared_h
36