xref: /libCEED/backends/weak/ceed-sycl-weak.c (revision bdee0278611904727ee35fcc2d0d7c3bf83db4c4)
1 // Copyright (c) 2017-2026, 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 #include "ceed-backend-weak.h"
9 
10 #define CEED_BACKEND(name, num_prefixes, ...) \
11   CEED_INTERN int __attribute__((weak)) name(void) { return CeedRegister_Weak(__func__, num_prefixes, __VA_ARGS__); }
12 // LCOV_EXCL_START
13 CEED_BACKEND(CeedRegister_Sycl, 1, "/gpu/sycl/ref")
14 CEED_BACKEND(CeedRegister_Sycl_Shared, 1, "/gpu/sycl/shared")
15 CEED_BACKEND(CeedRegister_Sycl_Gen, 1, "/gpu/sycl/gen")
16 // LCOV_EXCL_STOP
17 #undef CEED_BACKEND
18