28#include <unordered_map>
88 bool has(
const std::string& name)
const;
95 std::vector<std::string>
list()
const;
106 std::unordered_map<std::string, GPUResourceProfile> profiles_;
109 mutable std::mutex mutex_;
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.