Skip to content

Commit

Permalink
Remove Kokkos::ScopeGuard since it is called by dealii::MPI::MPI_Init…
Browse files Browse the repository at this point in the history
…Finalize
  • Loading branch information
Rombur committed Jan 24, 2024
1 parent 8194156 commit 04cf703
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions application/adamantine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ int main(int argc, char *argv[])
argc, argv, dealii::numbers::invalid_unsigned_int);
MPI_Comm communicator = MPI_COMM_WORLD;

Kokkos::ScopeGuard guard(argc, argv);

#ifdef ADAMANTINE_WITH_ADIAK
adiak_init(&communicator);
adiak::user();
Expand Down
2 changes: 0 additions & 2 deletions application/adamantine.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ int main(int argc, char *argv[])
argc, argv, dealii::numbers::invalid_unsigned_int);
MPI_Comm communicator = MPI_COMM_WORLD;

Kokkos::ScopeGuard guard(argc, argv);

#ifdef ADAMANTINE_WITH_ADIAK
adiak_init(&communicator);
adiak::user();
Expand Down
5 changes: 1 addition & 4 deletions tests/main.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2016 - 2021, the adamantine authors.
/* Copyright (c) 2016 - 2023, the adamantine authors.
*
* This file is subject to the Modified BSD License and may not be distributed
* without copyright and license information. Please refer to the file LICENSE
Expand All @@ -10,8 +10,6 @@

#include <boost/test/unit_test.hpp>

#include <Kokkos_Core.hpp>

#include <cfenv>

bool init_function() { return true; }
Expand All @@ -21,7 +19,6 @@ int main(int argc, char *argv[])
feenableexcept(FE_INVALID);
dealii::Utilities::MPI::MPI_InitFinalize mpi_initialization(
argc, argv, dealii::numbers::invalid_unsigned_int);
Kokkos::ScopeGuard guard(argc, argv);

return boost::unit_test::unit_test_main(&init_function, argc, argv);
}

0 comments on commit 04cf703

Please sign in to comment.