xref: /libCEED/backends/sycl-gen/ceed-sycl-gen.hpp (revision 99837b8af49d68657458a57a35df01ab8cfd96a9)
1 // Copyright (c) 2017-2024, 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 #pragma once
8 
9 #include <ceed/backend.h>
10 #include <ceed/ceed.h>
11 #include <sycl/sycl.hpp>
12 
13 #include "../sycl/ceed-sycl-common.hpp"
14 #include "../sycl/ceed-sycl-compile.hpp"
15 
16 typedef struct {
17   CeedInt         dim;
18   CeedInt         Q_1d;
19   CeedInt         max_P_1d;
20   SyclModule_t   *sycl_module;
21   sycl::kernel   *op;
22   FieldsInt_Sycl *indices;
23   Fields_Sycl    *fields;
24   Fields_Sycl    *B;
25   Fields_Sycl    *G;
26   CeedScalar     *W;
27 } CeedOperator_Sycl_gen;
28 
29 typedef struct {
30   const char *qfunction_name;
31   const char *qfunction_source;
32   void       *d_c;
33 } CeedQFunction_Sycl_gen;
34 
35 CEED_INTERN int CeedQFunctionCreate_Sycl_gen(CeedQFunction qf);
36 
37 CEED_INTERN int CeedOperatorCreate_Sycl_gen(CeedOperator op);
38