Skip to content

Commit

Permalink
skip inconsistent tests for DPCPP single mode
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Jun 24, 2022
1 parent 733cfd4 commit 4cd67c7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dpcpp/test/factorization/par_ilut_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ TEST_F(ParIlut, KernelComplexThresholdFilterAllUppererIsEquivalentToRef)

TEST_F(ParIlut, KernelThresholdFilterApproxNullptrCooIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter(mtx_l, dmtx_l, 0.5, true);
auto res = Csr::create(ref, mtx_size);
auto dres = Csr::create(dpcpp, mtx_size);
Expand All @@ -449,24 +453,40 @@ TEST_F(ParIlut, KernelThresholdFilterApproxNullptrCooIsEquivalentToRef)

TEST_F(ParIlut, KernelThresholdFilterApproxLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l, dmtx_l, mtx_l->get_num_stored_elements() / 2);
}


TEST_F(ParIlut, KernelThresholdFilterApproxNoneLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l, dmtx_l, 0);
}


TEST_F(ParIlut, KernelThresholdFilterApproxAllLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l, dmtx_l, mtx_l->get_num_stored_elements() - 1);
}


TEST_F(ParIlut, KernelComplexThresholdFilterApproxLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l_complex, dmtx_l_complex,
mtx_l_complex->get_num_stored_elements() / 2,
r<value_type>::value);
Expand All @@ -475,12 +495,20 @@ TEST_F(ParIlut, KernelComplexThresholdFilterApproxLowerIsEquivalentToRef)

TEST_F(ParIlut, KernelComplexThresholdFilterApproxNoneLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l_complex, dmtx_l_complex, 0, r<value_type>::value);
}


TEST_F(ParIlut, KernelComplexThresholdFilterApproxAllLowerIsEquivalentToRef)
{
#if GINKGO_DPCPP_SINGLE_MODE
// Need bitwise equivalence to CPU
GTEST_SKIP();
#endif
test_filter_approx(mtx_l_complex, dmtx_l_complex,
mtx_l_complex->get_num_stored_elements() - 1,
r<value_type>::value);
Expand Down

0 comments on commit 4cd67c7

Please sign in to comment.