|
Entropic 2.3.8
Local-first agentic inference engine
|
Centralized registry for named GPU resource profiles. More...
#include <entropic/inference/profile_registry.h>
Public Member Functions | |
| void | load_bundled () |
| Initialize with bundled profiles (maximum, balanced, background, minimal). | |
| bool | register_profile (const GPUResourceProfile &profile) |
| Register a custom profile. | |
| bool | deregister (const std::string &name) |
| Remove a profile by name. | |
| GPUResourceProfile | get (const std::string &name) const |
| Get a profile by name. | |
| bool | has (const std::string &name) const |
| Check if a profile name exists. | |
| std::vector< std::string > | list () const |
| List all registered profile names. | |
| size_t | size () const |
| Number of registered profiles. | |
Centralized registry for named GPU resource profiles.
Single concrete class (no three-layer hierarchy – one implementation, like GrammarRegistry, AdapterManager, and HookRegistry).
Definition at line 41 of file profile_registry.h.
| bool entropic::ProfileRegistry::deregister | ( | const std::string & | name | ) |
Remove a profile by name.
| name | Profile name. |
| name | Profile name. |
Definition at line 87 of file profile_registry.cpp.
| GPUResourceProfile entropic::ProfileRegistry::get | ( | const std::string & | name | ) | const |
Get a profile by name.
Get a profile by name with fallback.
| name | Profile name. |
| name | Profile name. |
Definition at line 105 of file profile_registry.cpp.
| bool entropic::ProfileRegistry::has | ( | const std::string & | name | ) | const |
Check if a profile name exists.
| name | Profile name. |
| name | Profile name. |
Definition at line 129 of file profile_registry.cpp.
| std::vector< std::string > entropic::ProfileRegistry::list | ( | ) | const |
List all registered profile names.
Definition at line 140 of file profile_registry.cpp.
| void entropic::ProfileRegistry::load_bundled | ( | ) |
Initialize with bundled profiles (maximum, balanced, background, minimal).
Initialize with bundled profiles.
Computes hardware-dependent thread counts at call time:
Safe to call multiple times (idempotent – clears and reloads).
Computes hardware-dependent thread counts for the background profile at call time. If hardware_concurrency() returns 0 (unknown platform), falls back to 2 threads.
Definition at line 31 of file profile_registry.cpp.
| bool entropic::ProfileRegistry::register_profile | ( | const GPUResourceProfile & | profile | ) |
Register a custom profile.
| profile | Profile to register. profile.name is the key. |
| profile | Profile to register. profile.name is the key. |
Definition at line 67 of file profile_registry.cpp.
| size_t entropic::ProfileRegistry::size | ( | ) | const |
Number of registered profiles.
Definition at line 157 of file profile_registry.cpp.