Loading...
Searching...
No Matches
PublicLayout.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3#pragma once
4
5// Byte sizes and member offsets of the public C++ classes, as compiled into
6// libgpridge. A translation unit that includes the same headers without the
7// build's -D flags must report the same numbers: the layout does not depend
8// on GPR_LINALG_KOKKOS, USE_RGMIN, or the other configuration macros.
9
10#include <cstddef>
11
12namespace gpr {
13
15 std::size_t gaussian_process = 0;
17 std::size_t backend_context = 0;
19 std::size_t gpneb_config = 0;
21 std::size_t dimer = 0;
22 std::size_t dimer_rgmin_translation = 0;
23 std::size_t atomic_dimer = 0;
25};
26
27// Compiled into libgpridge, so the numbers are the library's layout.
29
30// Defined by the layout consumer test, which includes these headers without
31// the build's -D flags. Not part of libgpridge.
33
34} // namespace gpr
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16
PublicLayoutBytes libraryPublicLayout()
PublicLayoutBytes consumerPublicLayout()
std::size_t dimer_rgmin_translation
std::size_t gaussian_process_inverse_diagonal
std::size_t backend_context_kokkos_workspace
std::size_t backend_context
std::size_t gaussian_process
std::size_t atomic_dimer_rgmin_translation
std::size_t gpneb_config_rgmin_method