From 2463454374a4b5116fc54147e01566e465097fad Mon Sep 17 00:00:00 2001 From: nihuini Date: Mon, 26 Aug 2024 16:46:45 +0800 Subject: [PATCH] disable rvv dispatch --- src/layer.cpp | 7 ------- src/layer_registry.h.in | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/layer.cpp b/src/layer.cpp index 3c40cbd67ca2..1f76d5460601 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -546,13 +546,6 @@ Layer* create_layer_cpu(int index) } else #endif // NCNN_RUNTIME_CPU && NCNN_MSA -#if NCNN_RUNTIME_CPU && NCNN_RVV - if (ncnn::cpu_support_riscv_v()) - { - layer_creator = layer_registry_rvv[index].creator; - } - else -#endif // NCNN_RUNTIME_CPU && NCNN_RVV { layer_creator = layer_registry_arch[index].creator; } diff --git a/src/layer_registry.h.in b/src/layer_registry.h.in index dfe8e73ce79a..97d2de37ef5b 100644 --- a/src/layer_registry.h.in +++ b/src/layer_registry.h.in @@ -46,12 +46,6 @@ static const layer_registry_entry layer_registry_lsx[] = { }; #endif // NCNN_RUNTIME_CPU && NCNN_LSX -#if NCNN_RUNTIME_CPU && NCNN_RVV -static const layer_registry_entry layer_registry_rvv[] = { -@layer_registry_rvv@ -}; -#endif // NCNN_RUNTIME_CPU && NCNN_RVV - #if NCNN_VULKAN static const layer_registry_entry layer_registry_vulkan[] = { @layer_registry_vulkan@