Skip to content

Commit 2fb775a

Browse files
committed
fix omp tests
1 parent 6f61906 commit 2fb775a

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

test/factorization/ic_kernels.cpp

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -149,22 +149,6 @@ TEST_F(Ic, SetsCorrectStrategy)
149149
}
150150

151151

152-
#ifdef GKO_COMPILING_OMP
153-
154-
155-
TEST_F(Ic, OmpComputeICBySparselibShouldThrow)
156-
{
157-
ASSERT_THROW(gko::factorization::Ic<>::build()
158-
.with_skip_sorting(true)
159-
.on(exec)
160-
->generate(dmtx),
161-
gko::InvalidStateError);
162-
}
163-
164-
165-
#else
166-
167-
168152
TEST_F(Ic, ComputeICIsEquivalentToRefSorted)
169153
{
170154
auto fact = gko::factorization::Ic<>::build()
@@ -196,5 +180,3 @@ TEST_F(Ic, ComputeICIsEquivalentToRefUnsorted)
196180
GKO_ASSERT_MTX_EQ_SPARSITY(fact->get_l_factor(), dfact->get_l_factor());
197181
GKO_ASSERT_MTX_EQ_SPARSITY(fact->get_lt_factor(), dfact->get_lt_factor());
198182
}
199-
200-
#endif

test/factorization/ilu_kernels.cpp

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -153,22 +153,6 @@ TEST_F(Ilu, SetsCorrectStrategy)
153153
}
154154

155155

156-
#ifdef GKO_COMPILING_OMP
157-
158-
159-
TEST_F(Ilu, OmpComputeILUBySparselibShouldThrow)
160-
{
161-
ASSERT_THROW(gko::factorization::Ilu<>::build()
162-
.with_skip_sorting(true)
163-
.on(exec)
164-
->generate(dmtx),
165-
gko::InvalidStateError);
166-
}
167-
168-
169-
#else
170-
171-
172156
TEST_F(Ilu, ComputeILUIsEquivalentToRefSorted)
173157
{
174158
auto fact = gko::factorization::Ilu<>::build()
@@ -200,6 +184,3 @@ TEST_F(Ilu, ComputeILUIsEquivalentToRefUnsorted)
200184
GKO_ASSERT_MTX_EQ_SPARSITY(fact->get_l_factor(), dfact->get_l_factor());
201185
GKO_ASSERT_MTX_EQ_SPARSITY(fact->get_u_factor(), dfact->get_u_factor());
202186
}
203-
204-
205-
#endif

0 commit comments

Comments
 (0)