Cebtenzzre commited on
Commit
0c9c434
·
unverified ·
1 Parent(s): a8ea91b

kompute : llama-bench support and ggml_cpu_has_kompute() (llama/5226)

Browse files
Files changed (2) hide show
  1. ggml.c +10 -1
  2. ggml.h +1 -0
ggml.c CHANGED
@@ -20473,6 +20473,14 @@ int ggml_cpu_has_vulkan(void) {
20473
  #endif
20474
  }
20475
 
 
 
 
 
 
 
 
 
20476
  int ggml_cpu_has_sycl(void) {
20477
  #if defined(GGML_USE_SYCL)
20478
  return 1;
@@ -20482,7 +20490,8 @@ int ggml_cpu_has_sycl(void) {
20482
  }
20483
 
20484
  int ggml_cpu_has_gpublas(void) {
20485
- return ggml_cpu_has_cublas() || ggml_cpu_has_clblast() || ggml_cpu_has_vulkan() || ggml_cpu_has_sycl();
 
20486
  }
20487
 
20488
  int ggml_cpu_has_sse3(void) {
 
20473
  #endif
20474
  }
20475
 
20476
+ int ggml_cpu_has_kompute(void) {
20477
+ #if defined(GGML_USE_KOMPUTE)
20478
+ return 1;
20479
+ #else
20480
+ return 0;
20481
+ #endif
20482
+ }
20483
+
20484
  int ggml_cpu_has_sycl(void) {
20485
  #if defined(GGML_USE_SYCL)
20486
  return 1;
 
20490
  }
20491
 
20492
  int ggml_cpu_has_gpublas(void) {
20493
+ return ggml_cpu_has_cublas() || ggml_cpu_has_clblast() || ggml_cpu_has_vulkan() || ggml_cpu_has_kompute() ||
20494
+ ggml_cpu_has_sycl();
20495
  }
20496
 
20497
  int ggml_cpu_has_sse3(void) {
ggml.h CHANGED
@@ -2271,6 +2271,7 @@ extern "C" {
2271
  GGML_API int ggml_cpu_has_cublas (void);
2272
  GGML_API int ggml_cpu_has_clblast (void);
2273
  GGML_API int ggml_cpu_has_vulkan (void);
 
2274
  GGML_API int ggml_cpu_has_gpublas (void);
2275
  GGML_API int ggml_cpu_has_sse3 (void);
2276
  GGML_API int ggml_cpu_has_ssse3 (void);
 
2271
  GGML_API int ggml_cpu_has_cublas (void);
2272
  GGML_API int ggml_cpu_has_clblast (void);
2273
  GGML_API int ggml_cpu_has_vulkan (void);
2274
+ GGML_API int ggml_cpu_has_kompute (void);
2275
  GGML_API int ggml_cpu_has_gpublas (void);
2276
  GGML_API int ggml_cpu_has_sse3 (void);
2277
  GGML_API int ggml_cpu_has_ssse3 (void);