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

Method CpuModuleRunner

tests/unittests/test_encoder_modules.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 engine::core::ModuleBuildContext ctx{};
102
103 CpuModuleRunner() {
104 backend = engine::core::init_backend(backend_config);
105 ggml_init_params params{};
106 params.mem_size = kTestGraphBytes;
107 params.mem_buffer = nullptr;
108 params.no_alloc = true;
109 ggml = ggml_init(params);
110 if (ggml == nullptr) {
111 throw std::runtime_error("failed to init test ggml context");
112 }
113 ctx.ggml = ggml;
114 ctx.module_instance_name = "encoder_module_test";
115 }
116
117 ~CpuModuleRunner() {
118 if (buffer != nullptr) {

Callers

nothing calls this directly

Calls 2

init_backendFunction · 0.85
ggml_initFunction · 0.85

Tested by

no test coverage detected