@@ -681,29 +681,12 @@ namespace {
681
681
createDefaultBinaryTestCase<vec>(TestSeed ()),
682
682
RESOLVE_OVERLOAD (filter_sub_overflow));
683
683
}
684
- /* The below two tests need to be compiled without SIMD with gcc compiler to avoid failures due to
685
- accuracy mismatch after 3rd decimal place for complex dtype.
686
- Arithmetics/2.Multiplication, where TypeParam = at::vec::SVE128::Vectorized<c10::complex<float>>
687
- Arithmetics/3.Multiplication, where TypeParam = at::vec::SVE128::Vectorized<c10::complex<double>>
688
- */
689
- #if defined(__GNUC__) && defined(CPU_CAPABILITY_SVE128)
690
- #define SIMD_OPTIMIZED __attribute__ ((optimize(" no-tree-vectorize" )))
691
- #else
692
- #define SIMD_OPTIMIZED
693
- #endif
694
-
695
- // Separate function to handle multiplication
696
- template <typename vec>
697
- SIMD_OPTIMIZED
698
- vec multiply (const vec& v0, const vec& v1) {
699
- return v0 * v1;
700
- }
701
684
TYPED_TEST (Arithmetics, Multiplication) {
702
685
using vec = TypeParam;
703
686
test_binary<vec>(
704
687
NAME_INFO (mult),
705
688
RESOLVE_OVERLOAD (local_multiply),
706
- multiply< vec> ,
689
+ []( const vec& v0, const vec& v1) { return v0 * v1; } ,
707
690
createDefaultBinaryTestCase<vec>(TestSeed (), false , true ),
708
691
RESOLVE_OVERLOAD (filter_mult_overflow));
709
692
}
@@ -1843,7 +1826,6 @@ vec multiply(const vec& v0, const vec& v1) {
1843
1826
#undef TEST_MASK_LOAD
1844
1827
#undef TEST_MASK_LOAD_N
1845
1828
}
1846
- #if !defined(CPU_CAPABILITY_SVE)
1847
1829
TYPED_TEST (VecMaskTests, MaskedCheck) {
1848
1830
using VT = ValueType<TypeParam>;
1849
1831
using vec = TypeParam;
@@ -1867,8 +1849,6 @@ vec multiply(const vec& v0, const vec& v1) {
1867
1849
1868
1850
#undef TEST_MASK_CHECK_N
1869
1851
}
1870
- #endif
1871
- #if !defined(CPU_CAPABILITY_SVE)
1872
1852
TYPED_TEST (VecMaskTests, ToFrom) {
1873
1853
using vec = TypeParam;
1874
1854
using VT = ValueType<TypeParam>;
@@ -1894,8 +1874,6 @@ vec multiply(const vec& v0, const vec& v1) {
1894
1874
<< " Failure Details:\n Test Seed to reproduce: " << seed;
1895
1875
}
1896
1876
}
1897
- #endif
1898
- #if !defined(CPU_CAPABILITY_SVE)
1899
1877
TYPED_TEST (VecMaskTests, Cast) {
1900
1878
using vec = TypeParam;
1901
1879
using src_t = ValueType<TypeParam>;
@@ -1940,7 +1918,6 @@ vec multiply(const vec& v0, const vec& v1) {
1940
1918
#undef TEST_MASK_CAST
1941
1919
#undef TEST_MASK_CAST_N
1942
1920
}
1943
- #endif
1944
1921
#else
1945
1922
#error GTEST does not have TYPED_TEST
1946
1923
#endif
0 commit comments