File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2400,6 +2400,7 @@ extern "C" {
2400
2400
GGML_API int ggml_cpu_has_vsx (void );
2401
2401
GGML_API int ggml_cpu_has_matmul_int8 (void );
2402
2402
GGML_API int ggml_cpu_has_cann (void );
2403
+ GGML_API int ggml_cpu_has_llamafile (void );
2403
2404
2404
2405
//
2405
2406
// Internal types and functions exposed for tests and benchmarks
Original file line number Diff line number Diff line change @@ -22005,6 +22005,14 @@ int ggml_cpu_has_cann(void) {
22005
22005
#endif
22006
22006
}
22007
22007
22008
+ int ggml_cpu_has_llamafile(void) {
22009
+ #if defined(GGML_USE_LLAMAFILE)
22010
+ return 1;
22011
+ #else
22012
+ return 0;
22013
+ #endif
22014
+ }
22015
+
22008
22016
int ggml_cpu_has_gpublas(void) {
22009
22017
return ggml_cpu_has_cuda() || ggml_cpu_has_vulkan() || ggml_cpu_has_kompute() || ggml_cpu_has_sycl();
22010
22018
}
Original file line number Diff line number Diff line change @@ -19146,11 +19146,7 @@ const char * llama_print_system_info(void) {
19146
19146
s += "SSSE3 = " + std::to_string(ggml_cpu_has_ssse3()) + " | ";
19147
19147
s += "VSX = " + std::to_string(ggml_cpu_has_vsx()) + " | ";
19148
19148
s += "MATMUL_INT8 = " + std::to_string(ggml_cpu_has_matmul_int8()) + " | ";
19149
- #ifdef GGML_USE_LLAMAFILE
19150
- s += "LLAMAFILE = 1 | ";
19151
- #else
19152
- s += "LLAMAFILE = 0 | ";
19153
- #endif
19149
+ s += "LLAMAFILE = " + std::to_string(ggml_cpu_has_llamafile()) + " | ";
19154
19150
19155
19151
return s.c_str();
19156
19152
}
You can’t perform that action at this time.
0 commit comments