1bd882c8aSJames Wright // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2bd882c8aSJames Wright // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3bd882c8aSJames Wright // 4bd882c8aSJames Wright // SPDX-License-Identifier: BSD-2-Clause 5bd882c8aSJames Wright // 6bd882c8aSJames Wright // This file is part of CEED: http://github.com/ceed 7bd882c8aSJames Wright 8bd882c8aSJames Wright #ifndef _ceed_sycl_compile_hpp 9bd882c8aSJames Wright #define _ceed_sycl_compile_hpp 10bd882c8aSJames Wright 11bd882c8aSJames Wright #include <ceed/backend.h> 12bd882c8aSJames Wright #include <ceed/ceed.h> 13bd882c8aSJames Wright 14bd882c8aSJames Wright #include <map> 15bd882c8aSJames Wright #include <sycl/sycl.hpp> 16bd882c8aSJames Wright 17bd882c8aSJames Wright using SyclModule_t = sycl::kernel_bundle<sycl::bundle_state::executable>; 18bd882c8aSJames Wright 19eb7e6cafSJeremy L Thompson CEED_INTERN int CeedBuildModule_Sycl(Ceed ceed, const std::string &kernel_source, SyclModule_t **sycl_module, 20bd882c8aSJames Wright const std::map<std::string, CeedInt> &constants = {}); 21eb7e6cafSJeremy L Thompson CEED_INTERN int CeedGetKernel_Sycl(Ceed ceed, const SyclModule_t *sycl_module, const std::string &kernel_name, sycl::kernel **sycl_kernel); 22bd882c8aSJames Wright 23*6ca0f394SUmesh Unnikrishnan CEED_INTERN int CeedRunKernelDimSharedSycl(Ceed ceed, sycl::kernel *kernel, const int grid_size, const int block_size_x, const int block_size_y, 24*6ca0f394SUmesh Unnikrishnan const int block_size_z, const int shared_mem_size, void **args); 25*6ca0f394SUmesh Unnikrishnan 26bd882c8aSJames Wright #endif // _ceed_sycl_compile_h 27