1*bd882c8aSJames Wright // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2*bd882c8aSJames Wright // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3*bd882c8aSJames Wright // 4*bd882c8aSJames Wright // SPDX-License-Identifier: BSD-2-Clause 5*bd882c8aSJames Wright // 6*bd882c8aSJames Wright // This file is part of CEED: http://github.com/ceed 7*bd882c8aSJames Wright 8*bd882c8aSJames Wright #ifndef _ceed_sycl_shared_hpp 9*bd882c8aSJames Wright #define _ceed_sycl_shared_hpp 10*bd882c8aSJames Wright 11*bd882c8aSJames Wright #include <ceed/backend.h> 12*bd882c8aSJames Wright #include <ceed/ceed.h> 13*bd882c8aSJames Wright 14*bd882c8aSJames Wright #include <sycl/sycl.hpp> 15*bd882c8aSJames Wright 16*bd882c8aSJames Wright #include "../sycl/ceed-sycl-common.hpp" 17*bd882c8aSJames Wright #include "../sycl/ceed-sycl-compile.hpp" 18*bd882c8aSJames Wright 19*bd882c8aSJames Wright typedef struct { 20*bd882c8aSJames Wright CeedInt interp_local_range[3]; 21*bd882c8aSJames Wright CeedInt grad_local_range[3]; 22*bd882c8aSJames Wright CeedInt weight_local_range[3]; 23*bd882c8aSJames Wright SyclModule_t *sycl_module; 24*bd882c8aSJames Wright sycl::kernel *interp_kernel; 25*bd882c8aSJames Wright sycl::kernel *interp_transpose_kernel; 26*bd882c8aSJames Wright sycl::kernel *grad_kernel; 27*bd882c8aSJames Wright sycl::kernel *grad_transpose_kernel; 28*bd882c8aSJames Wright sycl::kernel *weight_kernel; 29*bd882c8aSJames Wright CeedScalar *d_interp_1d; 30*bd882c8aSJames Wright CeedScalar *d_grad_1d; 31*bd882c8aSJames Wright CeedScalar *d_collo_grad_1d; // eliminate 32*bd882c8aSJames Wright CeedScalar *d_q_weight_1d; 33*bd882c8aSJames Wright } CeedBasis_Sycl_shared; 34*bd882c8aSJames Wright 35*bd882c8aSJames Wright CEED_INTERN int CeedBasisCreateTensorH1_Sycl_shared(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, 36*bd882c8aSJames Wright const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, CeedBasis basis); 37*bd882c8aSJames Wright 38*bd882c8aSJames Wright #endif // _ceed_sycl_shared_h 39