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

Function cuda_backend

tests/unittests/test_audio_utility_api.cpp:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22engine::core::BackendConfig cuda_backend() {
23 engine::core::BackendConfig backend;
24#ifdef GGML_USE_CUDA
25 backend.type = engine::core::BackendType::Cuda;
26#elif defined(GGML_USE_VULKAN)
27 backend.type = engine::core::BackendType::Vulkan;
28#else
29 backend.type = engine::core::BackendType::Cpu;
30#endif
31 backend.device = 0;
32 backend.threads = 1;
33 return backend;
34}
35
36void require(bool condition, const std::string & message) {
37 if (!condition) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected