mirror of
https://github.com/amd/blis.git
synced 2026-05-24 18:34:40 +00:00
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
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
||||
@@ -72,7 +72,7 @@ TYPED_TEST(subv_IIT_ERS_Test, n_lt_zero_nonUnitStride)
|
||||
subv<T>( 'n', invalid_n, x.data(), inc, y.data(), inc );
|
||||
|
||||
// Use bitwise comparison (no threshold).
|
||||
computediff<T>( "y", n, y.data(), y_ref.data(), inc );
|
||||
computediff<T>( "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<T>( 'n', invalid_n, x.data(), inc, y.data(), inc );
|
||||
|
||||
// Use bitwise comparison (no threshold).
|
||||
computediff<T>( "y", n, y.data(), y_ref.data(), inc );
|
||||
computediff<T>( "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<T>( 'n', invalid_n, x.data(), inc, y.data(), inc );
|
||||
|
||||
// Use bitwise comparison (no threshold).
|
||||
computediff<T>( "y", n, y.data(), y_ref.data(), inc );
|
||||
computediff<T>( "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<T>( 'n', invalid_n, x.data(), inc, y.data(), inc );
|
||||
|
||||
// Use bitwise comparison (no threshold).
|
||||
computediff<T>( "y", n, y.data(), y_ref.data(), inc );
|
||||
computediff<T>( "y", N, y.data(), y_ref.data(), inc );
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user