Skip to content

Commit

Permalink
always prefer xtheadvector
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Dec 22, 2024
1 parent 3b0feb9 commit a7127f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,20 +546,20 @@ 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
#if NCNN_RUNTIME_CPU && NCNN_XTHEADVECTOR
if (ncnn::cpu_support_riscv_xtheadvector())
{
layer_creator = layer_registry_xtheadvector[index].creator;
}
else
#endif // NCNN_RUNTIME_CPU && NCNN_XTHEADVECTOR
#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;
}
Expand Down

0 comments on commit a7127f2

Please sign in to comment.