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_shared_hpp 9 #define _ceed_sycl_shared_hpp 10 11 #include <ceed/backend.h> 12 #include <ceed/ceed.h> 13 14 #include <sycl/sycl.hpp> 15 16 #include "../sycl/ceed-sycl-common.hpp" 17 #include "../sycl/ceed-sycl-compile.hpp" 18 19 typedef struct { 20 CeedInt interp_local_range[3]; 21 CeedInt grad_local_range[3]; 22 CeedInt weight_local_range[3]; 23 SyclModule_t *sycl_module; 24 sycl::kernel *interp_kernel; 25 sycl::kernel *interp_transpose_kernel; 26 sycl::kernel *grad_kernel; 27 sycl::kernel *grad_transpose_kernel; 28 sycl::kernel *weight_kernel; 29 CeedScalar *d_interp_1d; 30 CeedScalar *d_grad_1d; 31 CeedScalar *d_collo_grad_1d; // eliminate 32 CeedScalar *d_q_weight_1d; 33 } CeedBasis_Sycl_shared; 34 35 CEED_INTERN int CeedBasisCreateTensorH1_Sycl_shared(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, 36 const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, CeedBasis basis); 37 38 #endif // _ceed_sycl_shared_h 39