File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2533,6 +2533,7 @@ extern "C" {
2533
2533
GGML_API int ggml_cpu_has_gpublas (void );
2534
2534
GGML_API int ggml_cpu_has_sse3 (void );
2535
2535
GGML_API int ggml_cpu_has_ssse3 (void );
2536
+ GGML_API int ggml_cpu_has_riscv_v (void );
2536
2537
GGML_API int ggml_cpu_has_sycl (void );
2537
2538
GGML_API int ggml_cpu_has_rpc (void );
2538
2539
GGML_API int ggml_cpu_has_vsx (void );
Original file line number Diff line number Diff line change @@ -23494,6 +23494,14 @@ int ggml_cpu_has_arm_fma(void) {
23494
23494
#endif
23495
23495
}
23496
23496
23497
+ int ggml_cpu_has_riscv_v(void) {
23498
+ #if defined(__riscv_v_intrinsic)
23499
+ return 1;
23500
+ #else
23501
+ return 0;
23502
+ #endif
23503
+ }
23504
+
23497
23505
int ggml_cpu_has_metal(void) {
23498
23506
#if defined(GGML_USE_METAL)
23499
23507
return 1;
You can’t perform that action at this time.
0 commit comments