Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
profile_registry.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
22#pragma once
23
25
26#include <mutex>
27#include <string>
28#include <unordered_map>
29#include <vector>
30
31namespace entropic {
32
42public:
54 void load_bundled();
55
62 bool register_profile(const GPUResourceProfile& profile);
63
70 bool deregister(const std::string& name);
71
80 GPUResourceProfile get(const std::string& name) const;
81
88 bool has(const std::string& name) const;
89
95 std::vector<std::string> list() const;
96
102 size_t size() const;
103
104private:
106 std::unordered_map<std::string, GPUResourceProfile> profiles_;
107
109 mutable std::mutex mutex_;
110};
111
112} // namespace entropic
Centralized registry for named GPU resource profiles.
bool register_profile(const GPUResourceProfile &profile)
Register a custom profile.
GPUResourceProfile get(const std::string &name) const
Get a profile by name.
size_t size() const
Number of registered profiles.
bool has(const std::string &name) const
Check if a profile name exists.
std::vector< std::string > list() const
List all registered profile names.
void load_bundled()
Initialize with bundled profiles (maximum, balanced, background, minimal).
bool deregister(const std::string &name)
Remove a profile by name.
Configuration structs with defaults.
Activate model on GPU (WARM → ACTIVE).
Named GPU resource profile for controlling inference hardware knobs.
Definition config.h:215