Loading...
Searching...
No Matches
EnvironmentGpuExecutor.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3#pragma once
4
5#include <memory>
6#include <span>
7#include <string>
8
9namespace gpr::detail {
10struct EnvironmentPairBatch;
11}
12
13namespace gpr::linalg {
14
18public:
19 explicit EnvironmentGpuExecutor(const std::string& library);
23
24 void assemble(const gpr::detail::EnvironmentPairBatch& batch,
25 std::span<double> output) const;
26
27private:
28 struct Impl;
29 std::unique_ptr<Impl> implementation_;
30};
31
34void configureEnvironmentGpu(const std::string& library);
35[[nodiscard]] std::shared_ptr<const EnvironmentGpuExecutor>
37
38} // namespace gpr::linalg
EnvironmentGpuExecutor & operator=(const EnvironmentGpuExecutor &)=delete
EnvironmentGpuExecutor(const std::string &library)
EnvironmentGpuExecutor(const EnvironmentGpuExecutor &)=delete
void assemble(const gpr::detail::EnvironmentPairBatch &batch, std::span< double > output) const
Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators,...
std::shared_ptr< const EnvironmentGpuExecutor > configuredEnvironmentGpu()
void configureEnvironmentGpu(const std::string &library)