From b55c86cce7f4e013ea3cc62e0c0502f7f8c2e760 Mon Sep 17 00:00:00 2001 From: vignbala Date: Tue, 30 Apr 2024 09:05:15 +0000 Subject: [PATCH] GTestSuite : Cleanups to ensure proper build of GTestSuite - Updated the IIT_ERS tests for SUBV to avoid using undefined variables. These tests are enabled only when GTestSuite is configured for BLIS_TYPED interface testing. - Updated an instantiator in DAXPBY accuracy tests, to avoid parsing error(extra comma). These tests are enabled only when GTestSuite is configured for BLIS_TYPED interface. AMD-Internal: [CPUPL-4500] Change-Id: If6894daadbbc353dd66968649642ff07fa663782 --- gtestsuite/testsuite/level1/axpbyv/daxpbyv_generic.cpp | 2 +- gtestsuite/testsuite/level1/subv/subv_IIT_ERS.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gtestsuite/testsuite/level1/axpbyv/daxpbyv_generic.cpp b/gtestsuite/testsuite/level1/axpbyv/daxpbyv_generic.cpp index b392e6a34..db7a043c2 100644 --- a/gtestsuite/testsuite/level1/axpbyv/daxpbyv_generic.cpp +++ b/gtestsuite/testsuite/level1/axpbyv/daxpbyv_generic.cpp @@ -168,7 +168,7 @@ INSTANTIATE_TEST_SUITE_P( ::testing::Values(double(2.3), double(1.0), double(-1.0), double(0.0)), // alpha ::testing::Values(double(-4.9), double(1.0), - double(-1.0), double(0.0)), // beta + double(-1.0), double(0.0)) // beta ), ::daxpbyvGenericTestPrint() ); diff --git a/gtestsuite/testsuite/level1/subv/subv_IIT_ERS.cpp b/gtestsuite/testsuite/level1/subv/subv_IIT_ERS.cpp index 2abc36f4f..dddebaf94 100644 --- a/gtestsuite/testsuite/level1/subv/subv_IIT_ERS.cpp +++ b/gtestsuite/testsuite/level1/subv/subv_IIT_ERS.cpp @@ -72,7 +72,7 @@ TYPED_TEST(subv_IIT_ERS_Test, n_lt_zero_nonUnitStride) subv( 'n', invalid_n, x.data(), inc, y.data(), inc ); // Use bitwise comparison (no threshold). - computediff( "y", n, y.data(), y_ref.data(), inc ); + computediff( "y", N, y.data(), y_ref.data(), inc ); } // n < 0, with unit stride @@ -93,7 +93,7 @@ TYPED_TEST(subv_IIT_ERS_Test, n_lt_zero_unitStride) subv( 'n', invalid_n, x.data(), inc, y.data(), inc ); // Use bitwise comparison (no threshold). - computediff( "y", n, y.data(), y_ref.data(), inc ); + computediff( "y", N, y.data(), y_ref.data(), inc ); } // n == 0, with non-unit stride @@ -114,7 +114,7 @@ TYPED_TEST(subv_IIT_ERS_Test, n_eq_zero_nonUnitStride) subv( 'n', invalid_n, x.data(), inc, y.data(), inc ); // Use bitwise comparison (no threshold). - computediff( "y", n, y.data(), y_ref.data(), inc ); + computediff( "y", N, y.data(), y_ref.data(), inc ); } // n == 0, with unit stride @@ -135,6 +135,6 @@ TYPED_TEST(subv_IIT_ERS_Test, n_eq_zero_unitStride) subv( 'n', invalid_n, x.data(), inc, y.data(), inc ); // Use bitwise comparison (no threshold). - computediff( "y", n, y.data(), y_ref.data(), inc ); + computediff( "y", N, y.data(), y_ref.data(), inc ); } #endif