| 557 | } |
| 558 | |
| 559 | void ggml_backend_load_all_from_path(const char * dir_path) { |
| 560 | #ifdef NDEBUG |
| 561 | bool silent = true; |
| 562 | #else |
| 563 | bool silent = false; |
| 564 | #endif |
| 565 | |
| 566 | ggml_backend_load_best("blas", silent, dir_path); |
| 567 | ggml_backend_load_best("zendnn", silent, dir_path); |
| 568 | ggml_backend_load_best("cann", silent, dir_path); |
| 569 | ggml_backend_load_best("cuda", silent, dir_path); |
| 570 | ggml_backend_load_best("hip", silent, dir_path); |
| 571 | ggml_backend_load_best("metal", silent, dir_path); |
| 572 | ggml_backend_load_best("rpc", silent, dir_path); |
| 573 | ggml_backend_load_best("sycl", silent, dir_path); |
| 574 | ggml_backend_load_best("vulkan", silent, dir_path); |
| 575 | ggml_backend_load_best("virtgpu", silent, dir_path); |
| 576 | ggml_backend_load_best("opencl", silent, dir_path); |
| 577 | ggml_backend_load_best("hexagon", silent, dir_path); |
| 578 | ggml_backend_load_best("musa", silent, dir_path); |
| 579 | ggml_backend_load_best("openvino", silent, dir_path); |
| 580 | ggml_backend_load_best("cpu", silent, dir_path); |
| 581 | // check the environment variable GGML_BACKEND_PATH to load an out-of-tree backend |
| 582 | const char * backend_path = std::getenv("GGML_BACKEND_PATH"); |
| 583 | if (backend_path) { |
| 584 | ggml_backend_load(backend_path); |
| 585 | } |
| 586 | } |
no test coverage detected