xref: /libCEED/rust/libceed-sys/c-src/backends/cuda-gen/ceed-cuda-gen.h (revision 8b97b69a34af3dd9e1bc9b8fd8651212448dc9ec)
15aed82e4SJeremy L Thompson // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
23d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3241a4b83SYohann //
43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
5241a4b83SYohann //
63d8e8822SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
7509d4af6SJeremy L Thompson #pragma once
83d576824SJeremy L Thompson 
949aac155SJeremy L Thompson #include <ceed.h>
10ec3da8bcSJed Brown #include <ceed/backend.h>
1149aac155SJeremy L Thompson #include <ceed/jit-source/cuda/cuda-types.h>
12241a4b83SYohann #include <cuda.h>
132b730f8bSJeremy L Thompson 
14241a4b83SYohann typedef struct {
15241a4b83SYohann   CeedInt        dim;
169e201c85SYohann   CeedInt        Q_1d;
179e201c85SYohann   CeedInt        max_P_1d;
18241a4b83SYohann   CUmodule       module;
19241a4b83SYohann   CUfunction     op;
209e201c85SYohann   FieldsInt_Cuda indices;
219e201c85SYohann   Fields_Cuda    fields;
229e201c85SYohann   Fields_Cuda    B;
239e201c85SYohann   Fields_Cuda    G;
24241a4b83SYohann   CeedScalar    *W;
25*8b97b69aSJeremy L Thompson   Points_Cuda    points;
26241a4b83SYohann } CeedOperator_Cuda_gen;
27241a4b83SYohann 
28241a4b83SYohann typedef struct {
2909095acaSJeremy L Thompson   const char *qfunction_name;
30241a4b83SYohann   void       *d_c;
31241a4b83SYohann } CeedQFunction_Cuda_gen;
32241a4b83SYohann 
33241a4b83SYohann CEED_INTERN int CeedQFunctionCreate_Cuda_gen(CeedQFunction qf);
34241a4b83SYohann 
35241a4b83SYohann CEED_INTERN int CeedOperatorCreate_Cuda_gen(CeedOperator op);
36