ggml : add system info functions

This commit is contained in:
Georgi Gerganov
2022-10-25 20:18:26 +03:00
parent c6710efde2
commit 34bb3ab0cf
5 changed files with 93 additions and 0 deletions

11
ggml.h
View File

@@ -548,6 +548,17 @@ enum ggml_opt_result ggml_opt(
struct ggml_opt_params params,
struct ggml_tensor * f);
//
// system info
//
int ggml_cpu_has_avx2(void);
int ggml_cpu_has_avx512(void);
int ggml_cpu_has_neon(void);
int ggml_cpu_has_fp16_va(void);
int ggml_cpu_has_wasm_simd(void);
int ggml_cpu_has_blas(void);
#ifdef __cplusplus
}
#endif