MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / parse_backend

Function parse_backend

tests/ace_step/ace_step_warm_bench.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48engine::core::BackendType parse_backend(const std::string & value) {
49 if (value == "cpu") {
50 return engine::core::BackendType::Cpu;
51 }
52 if (value == "cuda") {
53 return engine::core::BackendType::Cuda;
54 }
55 if (value == "vulkan") {
56 return engine::core::BackendType::Vulkan;
57 }
58 if (value == "best") {
59 return engine::core::BackendType::BestAvailable;
60 }
61 throw std::runtime_error("unsupported ACE-Step warmbench backend: " + value);
62}
63
64void set_env_required(const char * key, const std::string & value) {
65#if defined(_WIN32)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected