Loading...
Searching...
No Matches
SlateKernels.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_LINALG_SLATEKERNELS_H_
6#define GPR_LINALG_SLATEKERNELS_H_
7
8#ifdef GPR_LINALG_SLATE
9
10#include <cstddef>
11#include <vector>
12
13namespace gpr {
14namespace linalg {
16namespace slate_kernels {
17
18constexpr int nested_blas_thread_team_size = 1;
19
20const DistributedState& defaultDistributedState();
25int task_thread_budget(
26 const DistributedState& state = defaultDistributedState());
27void configure_nested_blas_threading(
28 const DistributedState& state = defaultDistributedState());
29bool potrf_lower(double* local_a, const int* desc, int n,
30 const DistributedState& state = defaultDistributedState());
31bool potri_lower(double* local_a, const int* desc, int n,
32 const DistributedState& state = defaultDistributedState());
33bool trsm_left_lower(const double* local_l, const int* desc_l, int n,
34 double* local_b, const int* desc_b, int nrhs,
35 bool transpose,
36 const DistributedState& state = defaultDistributedState());
37bool heev_lower(double* local_a, const int* desc_a, int n, double* local_z,
38 const int* desc_z, std::vector<double>& eigenvalues,
39 const DistributedState& state = defaultDistributedState());
40bool rank_block_cholesky_append_lower(
41 double* local_a, const int* desc, int n, int cached_n,
42 const DistributedState& state = defaultDistributedState());
43bool gram_lower(double* local_b, const int* desc_b, int rows, int columns,
44 double* local_product, const int* desc_product,
45 const DistributedState& state = defaultDistributedState());
46void resetTriangularSolveCallsForTesting();
47std::size_t triangularSolveCallsForTesting();
48
49} // namespace slate_kernels
50} // namespace linalg
51} // namespace gpr
52
53#endif // GPR_LINALG_SLATE
54
55#endif // GPR_LINALG_SLATEKERNELS_H_
Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators,...
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16