Skip to content

Commit

Permalink
fix windows and icpx
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Sep 18, 2024
1 parent e4268ed commit 4e332c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/ginkgo/core/preconditioner/ic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class Ic : public EnableLinOp<Ic<LSolverType, IndexType>>, public Transposable {
generate_default_solver(const std::shared_ptr<const Executor>& exec,
const std::shared_ptr<const LinOp>& mtx)
{
constexpr gko::remove_complex<value_type> default_reduce_residual{1e-4};
const gko::remove_complex<value_type> default_reduce_residual{1e-4};
const unsigned int default_max_iters{
static_cast<unsigned int>(mtx->get_size()[0])};

Expand Down
3 changes: 2 additions & 1 deletion reference/test/reorder/mc64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ TYPED_TEST(Mc64, HasSensibleDefaults)
TYPED_TEST(Mc64, CanBeCreatedWithReorderingStrategy)
{
using reorder_type = typename TestFixture::reorder_type;
using real_type = typename TestFixture::real_type;

auto mc64 =
reorder_type::build()
.with_strategy(
gko::experimental::reorder::mc64_strategy::max_diagonal_sum)
.with_tolerance(1e-4)
.with_tolerance(real_type{1e-4})
.on(this->exec)
->generate(this->not_id3_mtx);

Expand Down
7 changes: 4 additions & 3 deletions reference/test/reorder/mc64_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ TYPED_TEST(Mc64, CreatesCorrectPermutationAndScalingExampleSum)
gko::experimental::reorder::Mc64<value_type, index_type>::build()
.with_strategy(
gko::experimental::reorder::mc64_strategy::max_diagonal_sum)
.with_tolerance(1e-4)
.with_tolerance(real_type{1e-4})
.on(this->ref);

auto mc64 = mc64_factory->generate(this->mtx);
Expand All @@ -304,11 +304,12 @@ TYPED_TEST(Mc64, CreatesCorrectPermutationAndScalingExampleProduct)
{
using index_type = typename TestFixture::index_type;
using value_type = typename TestFixture::value_type;
using real_type = typename TestFixture::real_type;
auto mc64_factory =
gko::experimental::reorder::Mc64<value_type, index_type>::build()
.with_strategy(
gko::experimental::reorder::mc64_strategy::max_diagonal_product)
.with_tolerance(1e-4)
.with_tolerance(real_type{1e-4})
.on(this->ref);
auto mc64 = mc64_factory->generate(this->mtx);

Expand Down Expand Up @@ -356,7 +357,7 @@ TYPED_TEST(Mc64, CreatesCorrectPermutationAndScalingLargeTrivialExampleProduct)
gko::experimental::reorder::Mc64<value_type, index_type>::build()
.with_strategy(
gko::experimental::reorder::mc64_strategy::max_diagonal_product)
.with_tolerance(1e-4)
.with_tolerance(real_type{1e-4})
.on(this->ref);
auto mc64 = mc64_factory->generate(mtx);
// get components
Expand Down

0 comments on commit 4e332c0

Please sign in to comment.