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

Function cuda_backend

tests/unittests/test_zipenhancer_utility.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27engine::core::BackendConfig cuda_backend() {
28 engine::core::BackendConfig backend;
29#ifdef GGML_USE_CUDA
30 backend.type = engine::core::BackendType::Cuda;
31#elif defined(GGML_USE_VULKAN)
32 backend.type = engine::core::BackendType::Vulkan;
33#else
34 backend.type = engine::core::BackendType::Cpu;
35#endif
36 backend.device = 0;
37 backend.threads = 1;
38 return backend;
39}
40
41std::filesystem::path asset_path(const std::string & relative) {
42 return std::filesystem::path(ENGINE_TEST_ASSET_ROOT) / relative;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected