xref: /libCEED/rust/libceed-sys/c-src/backends/sycl/ceed-sycl-compile.hpp (revision eb7e6cafeb5d6cc94d59355f95e7bc9ae3fc1c25)
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_compile_hpp
9 #define _ceed_sycl_compile_hpp
10 
11 #include <ceed/backend.h>
12 #include <ceed/ceed.h>
13 
14 #include <map>
15 #include <sycl/sycl.hpp>
16 
17 using SyclModule_t = sycl::kernel_bundle<sycl::bundle_state::executable>;
18 
19 CEED_INTERN int CeedBuildModule_Sycl(Ceed ceed, const std::string &kernel_source, SyclModule_t **sycl_module,
20                                      const std::map<std::string, CeedInt> &constants = {});
21 CEED_INTERN int CeedGetKernel_Sycl(Ceed ceed, const SyclModule_t *sycl_module, const std::string &kernel_name, sycl::kernel **sycl_kernel);
22 
23 #endif  // _ceed_sycl_compile_h
24