From ece454fd465fd7fe2d5b4c33928313ce85fb789a Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Mon, 10 Oct 2022 19:19:04 +0800 Subject: [PATCH] fix(third_party): fix cpuinfo related to sve2 GitOrigin-RevId: 51a3facd0509a3de95476c8054626747ecbd1c43 --- dnn/test/arm_common/cpuinfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dnn/test/arm_common/cpuinfo.cpp b/dnn/test/arm_common/cpuinfo.cpp index 7a88f92f5..53b458fa4 100644 --- a/dnn/test/arm_common/cpuinfo.cpp +++ b/dnn/test/arm_common/cpuinfo.cpp @@ -201,7 +201,10 @@ TEST(ARM_RUNTIME, CPUINFO_SDM8GEN1) { ASSERT_TRUE(cpuinfo_has_arm_neon_dot()); - ASSERT_FALSE(cpuinfo_has_arm_sve2()); + //! Different devices which are the "right_soc" may support or don't support + //! sve2, so comment the below code. When the SVE2 instruction set is used, + //! please uncomment it and fix the bug. + // ASSERT_FALSE(cpuinfo_has_arm_sve2()); #if MEGDNN_AARCH64 ASSERT_TRUE(cpuinfo_has_arm_i8mm()); #endif -- GitLab