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_SYCL_GEN_HPP 9 #define CEED_SYCL_GEN_HPP 10 11 #include <ceed/backend.h> 12 #include <ceed/ceed.h> 13 #include <sycl/sycl.hpp> 14 15 #include "../sycl/ceed-sycl-common.hpp" 16 #include "../sycl/ceed-sycl-compile.hpp" 17 18 typedef struct { 19 CeedInt dim; 20 CeedInt Q_1d; 21 CeedInt max_P_1d; 22 SyclModule_t *sycl_module; 23 sycl::kernel *op; 24 FieldsInt_Sycl *indices; 25 Fields_Sycl *fields; 26 Fields_Sycl *B; 27 Fields_Sycl *G; 28 CeedScalar *W; 29 } CeedOperator_Sycl_gen; 30 31 typedef struct { 32 char *q_function_name; 33 char *q_function_source; 34 void *d_c; 35 } CeedQFunction_Sycl_gen; 36 37 CEED_INTERN int CeedQFunctionCreate_Sycl_gen(CeedQFunction qf); 38 39 CEED_INTERN int CeedOperatorCreate_Sycl_gen(CeedOperator op); 40 41 #endif // CEED_SYCL_GEN_HPP 42