@@ -563,6 +563,7 @@ struct test {
563
563
static const bool cuda;
564
564
static const bool opencl;
565
565
static const bool vulkan;
566
+ static const bool kompute;
566
567
static const bool metal;
567
568
static const bool gpu_blas;
568
569
static const bool blas;
@@ -647,6 +648,9 @@ struct test {
647
648
if (vulkan) {
648
649
return " Vulkan" ;
649
650
}
651
+ if (kompute) {
652
+ return " Kompute" ;
653
+ }
650
654
if (metal) {
651
655
return " Metal" ;
652
656
}
@@ -662,7 +666,7 @@ struct test {
662
666
static const std::vector<std::string> & get_fields () {
663
667
static const std::vector<std::string> fields = {
664
668
" build_commit" , " build_number" ,
665
- " cuda" , " opencl" , " vulkan" , " metal" , " gpu_blas" , " blas" ,
669
+ " cuda" , " opencl" , " vulkan" , " kompute " , " metal" , " gpu_blas" , " blas" ,
666
670
" cpu_info" , " gpu_info" ,
667
671
" model_filename" , " model_type" , " model_size" , " model_n_params" ,
668
672
" n_batch" , " n_threads" , " type_k" , " type_v" ,
@@ -686,8 +690,9 @@ struct test {
686
690
field == " avg_ns" || field == " stddev_ns" ) {
687
691
return INT;
688
692
}
689
- if (field == " cuda" || field == " opencl" || field == " vulkan" || field == " metal" || field == " gpu_blas" || field == " blas" ||
690
- field == " f16_kv" || field == " no_kv_offload" || field == " mul_mat_q" ) {
693
+ if (field == " cuda" || field == " opencl" || field == " vulkan" || field == " kompute" || field == " metal" ||
694
+ field == " gpu_blas" || field == " blas" || field == " f16_kv" || field == " no_kv_offload" ||
695
+ field == " mul_mat_q" ) {
691
696
return BOOL;
692
697
}
693
698
if (field == " avg_ts" || field == " stddev_ts" ) {
@@ -714,7 +719,8 @@ struct test {
714
719
}
715
720
std::vector<std::string> values = {
716
721
build_commit, std::to_string (build_number),
717
- std::to_string (cuda), std::to_string (opencl), std::to_string (vulkan), std::to_string (metal), std::to_string (gpu_blas), std::to_string (blas),
722
+ std::to_string (cuda), std::to_string (opencl), std::to_string (vulkan), std::to_string (vulkan),
723
+ std::to_string (metal), std::to_string (gpu_blas), std::to_string (blas),
718
724
cpu_info, gpu_info,
719
725
model_filename, model_type, std::to_string (model_size), std::to_string (model_n_params),
720
726
std::to_string (n_batch), std::to_string (n_threads), ggml_type_name (type_k), ggml_type_name (type_v),
@@ -743,6 +749,7 @@ const int test::build_number = LLAMA_BUILD_NUMBER;
743
749
const bool test::cuda = !!ggml_cpu_has_cublas();
744
750
const bool test::opencl = !!ggml_cpu_has_clblast();
745
751
const bool test::vulkan = !!ggml_cpu_has_vulkan();
752
+ const bool test::kompute = !!ggml_cpu_has_kompute();
746
753
const bool test::metal = !!ggml_cpu_has_metal();
747
754
const bool test::gpu_blas = !!ggml_cpu_has_gpublas();
748
755
const bool test::blas = !!ggml_cpu_has_blas();
0 commit comments