1*d1503016SJeremy L Thompson // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2*d1503016SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3*d1503016SJeremy L Thompson // 4*d1503016SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 5*d1503016SJeremy L Thompson // 6*d1503016SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 7*d1503016SJeremy L Thompson 8*d1503016SJeremy L Thompson #include "ceed-backend-weak.h" 9*d1503016SJeremy L Thompson 10*d1503016SJeremy L Thompson #define CEED_BACKEND(name, num_prefixes, ...) \ 11*d1503016SJeremy L Thompson CEED_INTERN int __attribute__((weak)) name(void) { return CeedRegister_Weak(__func__, num_prefixes, __VA_ARGS__); } 12*d1503016SJeremy L Thompson // LCOV_EXCL_START 13*d1503016SJeremy L Thompson CEED_BACKEND(CeedRegister_Cuda, 1, "/gpu/cuda/ref") 14*d1503016SJeremy L Thompson CEED_BACKEND(CeedRegister_Cuda_Gen, 1, "/gpu/cuda/gen") 15*d1503016SJeremy L Thompson CEED_BACKEND(CeedRegister_Cuda_Shared, 1, "/gpu/cuda/shared") 16*d1503016SJeremy L Thompson // LCOV_EXCL_STOP 17*d1503016SJeremy L Thompson #undef CEED_BACKEND 18