ggml : add and use ggml_cpu_has_llamafile() (#8664)

This commit is contained in:
Georgi Gerganov 2024-07-25 12:37:42 +03:00 committed by GitHub
parent be6d7c0791
commit eddcb5238b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -22005,6 +22005,14 @@ int ggml_cpu_has_cann(void) {
#endif
}
int ggml_cpu_has_llamafile(void) {
#if defined(GGML_USE_LLAMAFILE)
return 1;
#else
return 0;
#endif
}
int ggml_cpu_has_gpublas(void) {
return ggml_cpu_has_cuda() || ggml_cpu_has_vulkan() || ggml_cpu_has_kompute() || ggml_cpu_has_sycl();
}