Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
health_provider.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6#include <string>
7
9
19public:
20 virtual ~HealthProvider() = default;
21
28};
29
37
39std::unique_ptr<HealthProvider> make_default_health_provider(
40 HealthProbeOptions options = {});
41
48 bool render_requested = true);
49
51int exit_code(const HealthResult& result);
53std::string render_human(const HealthResult& result);
54
55} // namespace pulp::tooling::gpu_health
Blocking producer interface for the three independent GPU health probes.
Definition health_provider.hpp:18
virtual ProbeEvidence probe_headless_surface()=0
Acquire a bounded headless Graphite render/readback observation.
virtual ProbeEvidence probe_renderer3d()=0
Acquire Renderer3D evidence, including a bounded render/readback oracle.
virtual ProbeEvidence probe_compute()=0
Acquire a bounded GPU compute/map observation and CPU-oracle comparison.
Bounded, typed evidence returned by Pulp GPU health diagnostics.
Definition health_provider.hpp:8
int exit_code(const HealthResult &result)
Map pass to 0, fail to 1, and unavailable or unverified to 2.
std::string render_human(const HealthResult &result)
Render an owning human-readable report; machine consumers use to_json().
HealthResult run_health_check(HealthProvider &provider, bool render_requested=true)
Execute the requested probes serially and derive one closed HealthResult.
std::unique_ptr< HealthProvider > make_default_health_provider(HealthProbeOptions options={})
Create the native blocking provider and transfer sole ownership to the caller.
Fault controls applied after real GPU work completes.
Definition health_provider.hpp:34
bool seed_headless_content_mismatch
Definition health_provider.hpp:35
Closed versioned aggregate returned by the GPU health diagnostic.
Definition health_result.hpp:206
Evidence and aggregate verdict for one independently executed probe.
Definition health_result.hpp:193