Skip to content

Commit

Permalink
cleaning: remove iostream from headers where possible (IWYU)
Browse files Browse the repository at this point in the history
  • Loading branch information
romintomasetti committed Oct 5, 2023
1 parent 41cf2e5 commit 6b21fde
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 13 deletions.
2 changes: 0 additions & 2 deletions containers/src/Kokkos_UnorderedMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include <impl/Kokkos_Traits.hpp>
#include <impl/Kokkos_UnorderedMap_impl.hpp>

#include <iostream>

#include <cstdint>

namespace Kokkos {
Expand Down
1 change: 0 additions & 1 deletion containers/src/impl/Kokkos_Bitset_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <cstdio>
#include <climits>
#include <iostream>
#include <iomanip>

namespace Kokkos {
Expand Down
1 change: 0 additions & 1 deletion containers/src/impl/Kokkos_UnorderedMap_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <cstdio>
#include <climits>
#include <iostream>
#include <iomanip>

namespace Kokkos {
Expand Down
1 change: 1 addition & 0 deletions core/perf_test/test_mempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <limits>

#include <benchmark/benchmark.h>
Expand Down
2 changes: 2 additions & 0 deletions core/perf_test/test_taskdag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
//
//@HEADER

#include <iostream>

#include <Kokkos_Core.hpp>

#if !defined(KOKKOS_ENABLE_TASKDAG) || \
Expand Down
2 changes: 0 additions & 2 deletions core/src/Kokkos_MemoryPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ static_assert(false,
#include <impl/Kokkos_Error.hpp>
#include <impl/Kokkos_SharedAlloc.hpp>

#include <iostream>

namespace Kokkos {
namespace Impl {
/* Report violation of size constraints:
Expand Down
1 change: 0 additions & 1 deletion core/src/Kokkos_Parallel_Reduce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ static_assert(false,
#include <impl/Kokkos_FunctorAnalysis.hpp>
#include <impl/Kokkos_Tools_Generic.hpp>
#include <type_traits>
#include <iostream>

namespace Kokkos {

Expand Down
2 changes: 2 additions & 0 deletions core/src/OpenMP/Kokkos_OpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#define KOKKOS_IMPL_PUBLIC_INCLUDE
#endif

#include <iostream>

#include <OpenMP/Kokkos_OpenMP.hpp>
#include <OpenMP/Kokkos_OpenMP_Instance.hpp>

Expand Down
3 changes: 2 additions & 1 deletion core/src/Threads/Kokkos_ThreadsExec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
#include <Kokkos_Macros.hpp>

#include <cstdio>

#include <ostream>
#include <utility>

#include <impl/Kokkos_Spinwait.hpp>

#include <Kokkos_Atomic.hpp>
Expand Down
2 changes: 0 additions & 2 deletions core/src/impl/Kokkos_HostSpace_ZeroMemset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <Kokkos_HostSpace.hpp>
#include <impl/Kokkos_ZeroMemset_fwd.hpp>

#include <iostream>

namespace Kokkos {
namespace Impl {

Expand Down
6 changes: 3 additions & 3 deletions core/src/impl/Kokkos_SharedAlloc_timpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

#include <Kokkos_HostSpace.hpp> // used with HostInaccessible specializations

#include <string> // std::string
#include <cstring> // strncpy
#include <iostream> // ostream
#include <cstring>
#include <ostream>
#include <string>

namespace Kokkos {
namespace Impl {
Expand Down
2 changes: 2 additions & 0 deletions example/build_cmake_in_tree/cmake_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
//@HEADER

#include <Kokkos_Core.hpp>

#include <cstdio>
#include <iostream>

int main(int argc, char* argv[]) {
Kokkos::initialize(argc, argv);
Expand Down
2 changes: 2 additions & 0 deletions example/build_cmake_installed/cmake_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
//@HEADER

#include <Kokkos_Core.hpp>

#include <cstdio>
#include <iostream>

extern "C" void print_fortran_();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
//@HEADER

#include <Kokkos_Core.hpp>

#include <cstdio>
#include <iostream>

extern "C" void print_fortran_();
void print_cxx();
Expand Down

0 comments on commit 6b21fde

Please sign in to comment.