xref: /libCEED/rust/libceed-sys/c-src/backends/sycl/ceed-sycl-compile.hpp (revision eb7e6cafeb5d6cc94d59355f95e7bc9ae3fc1c25)
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 
19*eb7e6cafSJeremy 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 = {});
21*eb7e6cafSJeremy 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 
23bd882c8aSJames Wright #endif  // _ceed_sycl_compile_h
24