COMPMID-3987: Nightly failure - Android builds failing in dataset and validation
authorManuel Bottini <manuel.bottini@arm.com>
Thu, 19 Nov 2020 12:12:06 +0000 (12:12 +0000)
committerPablo Marquez Tello <pablo.tello@arm.com>
Mon, 23 Nov 2020 18:45:46 +0000 (18:45 +0000)
Removing warnings from vector library in GCC 7.1+
Removing warning in wanted switch cases fall throughs
GCAccessor moving constructor removed
Removing parentheses equality checks in stb_image
Small fixes in GEMM test suite

Change-Id: I8ba8e3fa20b45c32e5b6219473e0f33ab787ca30
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4483
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
(cherry picked from commit 827817e627acfdc50c3a8ed748932e5893cc8a18)
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4172
Tested-by: Georgios Pinitas <georgios.pinitas@arm.com>
SConstruct
src/core/NEON/kernels/arm_gemm/indirect-interleaves/a32_interleave6_block1_fp32_fp32.hpp
src/core/NEON/kernels/arm_gemm/merges/a32_merge_float_8x6.hpp
tests/GLES_COMPUTE/GCAccessor.h
tests/validation/CL/GEMMMatrixMultiplyReshapedOnlyRHS.cpp
utils/Utils.cpp

index 5dac49409782d363a764c38754bc7e86f8ff1c3d..3b2be1176676272f9980e3f27224cc7e07bfc592 100644 (file)
@@ -314,6 +314,8 @@ elif env['os'] == 'bare_metal':
     env.Append(CXXFLAGS = ['-fPIC'])
     env.Append(CPPDEFINES = ['NO_MULTI_THREADING'])
     env.Append(CPPDEFINES = ['BARE_METAL'])
+if env['os'] == 'linux' and env['arch'] == 'armv7a':
+    env.Append(CXXFLAGS = [ '-Wno-psabi' ])
 
 if env['opencl']:
     if env['os'] in ['bare_metal'] or env['standalone']:
index 807511f0d21f06deb3e1769a1a7c2275d3e36df4..074299997d2652affe649d17028949b4c1aee00c 100644 (file)
@@ -22,6 +22,9 @@
  * SOFTWARE.
  */
 #pragma once
+#if (defined(__GNUC__) && (__GNUC__ >= 7))
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#endif
 
 #ifdef __arm__
 
index bea455ca67542b611ba7dff5378b286148565b86..8fdd2c920d80ad29be259d832232c8f71cdb92a3 100644 (file)
@@ -22,6 +22,9 @@
  * SOFTWARE.
  */
 #pragma once
+#if (defined(__GNUC__) && (__GNUC__ >= 7))
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#endif
 
 #ifdef __arm__
 
index 2a8733cbc5a948aeaed8e4c641feeb99ca476c2d..65df0a5ddcbdfce163d2bac62034c82d1e8f89bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2020 Arm Limited.
  *
  * SPDX-License-Identifier: MIT
  *
@@ -50,8 +50,8 @@ public:
     GCAccessor &operator=(const GCAccessor &) = delete;
     /** Allow instances of this class to be move constructed */
     GCAccessor(GCAccessor &&) = default;
-    /** Allow instances of this class to be moved */
-    GCAccessor &operator=(GCAccessor &&) = default;
+    /** Prevent instances of this class to be moved */
+    GCAccessor &operator=(GCAccessor &&) = delete;
 
     /** Destructor that unmaps the GLES memory. */
     ~GCAccessor();
index eb8f9913a657201662746ed97b7c01607cb76453..7cde3d04cab2066e41f16f35d18d5e9a5936907c 100644 (file)
@@ -348,7 +348,7 @@ FIXTURE_DATA_TEST_CASE(RunPrecommit, CLGEMMMatrixMultiplyReshapedOnlyRHSFixture<
                                                                    h0_values),
                                                                    i_values_rhs),
                                                                    t_values_rhs),
-                                                                   framework::dataset::make("export_to_cl_image_rhs", false, true)),
+                                                                   framework::dataset::make("export_to_cl_image_rhs", {false, true})),
                                                                    framework::dataset::make("DataType", DataType::F32)),
                                                                    a_values),
                                                                    beta_values),
@@ -379,7 +379,7 @@ FIXTURE_DATA_TEST_CASE(RunNightly, CLGEMMMatrixMultiplyReshapedOnlyRHSFixture<fl
                                                                    h0_values),
                                                                    i_values_rhs),
                                                                    t_values_rhs),
-                                                                   framework::dataset::make("export_to_cl_image_rhs", false, true)),
+                                                                   framework::dataset::make("export_to_cl_image_rhs", {false, true})),
                                                                    framework::dataset::make("DataType", DataType::F32)),
                                                                    a_values),
                                                                    beta_values),
@@ -411,7 +411,7 @@ FIXTURE_DATA_TEST_CASE(RunPrecommit3D, CLGEMMMatrixMultiplyReshapedOnlyRHS3DFixt
                                                                    h0_values),
                                                                    i_values_rhs),
                                                                    t_values_rhs),
-                                                                   framework::dataset::make("export_to_cl_image_rhs", false, true)),
+                                                                   framework::dataset::make("export_to_cl_image_rhs", {false, true})),
                                                                    framework::dataset::make("has_pad_y", {false, true})),
                                                                    framework::dataset::make("DataType", DataType::F32)),
                                                                    a_values),
@@ -443,7 +443,7 @@ FIXTURE_DATA_TEST_CASE(RunNightly3D, CLGEMMMatrixMultiplyReshapedOnlyRHS3DFixtur
                                                                    h0_values),
                                                                    i_values_rhs),
                                                                    t_values_rhs),
-                                                                   framework::dataset::make("export_to_cl_image_rhs", false, true)),
+                                                                   framework::dataset::make("export_to_cl_image_rhs", {false, true})),
                                                                    framework::dataset::make("has_pad_y", {false, true})),
                                                                    framework::dataset::make("DataType", DataType::F32)),
                                                                    a_values),
index 754e7d07347c1a34734a99b2cf258d228a8240a8..7380ad79098ed39f990fe5200c89b28491dba645 100644 (file)
 #pragma GCC diagnostic ignored "-Wswitch-default"
 #pragma GCC diagnostic ignored "-Wunused-parameter"
 #pragma GCC diagnostic ignored "-Wstrict-overflow"
+#if (defined(__GNUC__) && (__GNUC__ >= 7))
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#endif // (defined(__GNUC__) && (__GNUC__ >= 7))
+#if defined(__clang__)
+#pragma GCC diagnostic ignored "-Wparentheses-equality"
+#endif // defined(__clang__)
 #define STB_IMAGE_IMPLEMENTATION
 #include "stb/stb_image.h"
 #pragma GCC diagnostic pop