Skip to content

Commit

Permalink
Merge pull request #1282 from dalg24/cleanup_kokkos_header_includes
Browse files Browse the repository at this point in the history
Cleanup Kokkos header includes
  • Loading branch information
lucbv authored Feb 10, 2022
2 parents a60d375 + a421a4c commit a674aad
Show file tree
Hide file tree
Showing 22 changed files with 1,241 additions and 1,200 deletions.
4 changes: 0 additions & 4 deletions perf_test/sparse/KokkosSparse_pcg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
#include <cmath>
#include <limits>
#include <Kokkos_Core.hpp>
#include <Kokkos_Timer.hpp>

#include <Kokkos_Atomic.hpp>
#include <Kokkos_MemoryTraits.hpp>

#include <iostream>
#include "KokkosKernels_Handle.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/batched/dense/KokkosBatched_Test_BlockCrs_Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stdexcept>

#include "Kokkos_Core.hpp"
#include "Kokkos_Timer.hpp"

#include "KokkosBatched_Util.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/batched/sparse/KokkosBatched_Krylov_Handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <iostream>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion src/common/KokkosKernels_ExecSpaceUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
*/

#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"

#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
#include <level_zero/zes_api.h>
Expand Down
2 changes: 0 additions & 2 deletions src/common/KokkosKernels_PrintUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#ifndef _KOKKOSKERNELS_PRINTUTILS_HPP
#define _KOKKOSKERNELS_PRINTUTILS_HPP
#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"
#include "Kokkos_Timer.hpp"
#include <ostream>

namespace KokkosKernels {
Expand Down
2 changes: 0 additions & 2 deletions src/common/KokkosKernels_SimpleUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
#ifndef _KOKKOSKERNELS_SIMPLEUTILS_HPP
#define _KOKKOSKERNELS_SIMPLEUTILS_HPP
#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"
#include "Kokkos_ArithTraits.hpp"
#include "Kokkos_Timer.hpp"
#include <type_traits>

#define KOKKOSKERNELS_MACRO_MIN(x, y) ((x) < (y) ? (x) : (y))
Expand Down
2 changes: 0 additions & 2 deletions src/common/KokkosKernels_SparseUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
#ifndef _KOKKOSKERNELS_SPARSEUTILS_HPP
#define _KOKKOSKERNELS_SPARSEUTILS_HPP
#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"
#include "Kokkos_Timer.hpp"
#include "KokkosKernels_SimpleUtils.hpp"
#include "KokkosKernels_IOUtils.hpp"
#include "KokkosKernels_ExecSpaceUtils.hpp"
Expand Down
3 changes: 0 additions & 3 deletions src/common/KokkosKernels_Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
//@HEADER
*/
#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"
#include "Kokkos_Timer.hpp"
#include "Kokkos_MemoryTraits.hpp"
#include "Kokkos_ArithTraits.hpp"
#include "Kokkos_UnorderedMap.hpp"
#include <iostream>
Expand Down
2 changes: 0 additions & 2 deletions src/common/KokkosKernels_VectorUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
*/

#include "Kokkos_Core.hpp"
#include "Kokkos_Atomic.hpp"
#include "Kokkos_Timer.hpp"
#ifndef _KOKKOSKERNELS_VECTORUTILS_HPP
#define _KOKKOSKERNELS_VECTORUTILS_HPP

Expand Down
1 change: 0 additions & 1 deletion src/graph/KokkosGraph_Distance1ColorHandle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <fstream>
#include <ostream>

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <KokkosKernels_Utils.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/graph/KokkosGraph_Distance2ColorHandle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

#include <KokkosKernels_Utils.hpp>
#include <Kokkos_Core.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include <KokkosKernels_Error.hpp>

#ifndef _GRAPHCOLORDISTANCE2HANDLE_HPP
Expand Down
3 changes: 0 additions & 3 deletions src/graph/impl/KokkosGraph_Distance1Color_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
*/

#include <Kokkos_Core.hpp>
#include <Kokkos_Atomic.hpp>
#include <Kokkos_Timer.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include <vector>
#include "KokkosGraph_Distance1ColorHandle.hpp"

Expand Down
4 changes: 0 additions & 4 deletions src/graph/impl/KokkosGraph_Distance2Color_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,14 @@
#include <vector>
#include <type_traits>

#include <Kokkos_Atomic.hpp>
#include <Kokkos_Core.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_UniqueToken.hpp>

#include <KokkosKernels_Uniform_Initialized_MemoryPool.hpp>
#include <KokkosKernels_HashmapAccumulator.hpp>
#include <KokkosSparse_spgemm.hpp>
#include <KokkosKernels_BitUtils.hpp>

#include <Kokkos_Timer.hpp>

#include "KokkosGraph_Distance1Color.hpp"
#include "KokkosGraph_Distance1ColorHandle.hpp" // todo: remove this (SCAFFOLDING - WCMCLEN)
#include "KokkosGraph_Distance2ColorHandle.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/sparse/KokkosSparse_gauss_seidel_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <KokkosKernels_Utils.hpp>
// needed for two-stage/classical GS
Expand Down
1 change: 0 additions & 1 deletion src/sparse/KokkosSparse_spadd_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <iostream>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion src/sparse/KokkosSparse_spgemm_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <iostream>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion src/sparse/KokkosSparse_spiluk_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <iostream>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion src/sparse/KokkosSparse_sptrsv_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
//@HEADER
*/

#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Core.hpp>
#include <iostream>
#include <string>
Expand Down
3 changes: 0 additions & 3 deletions src/sparse/impl/KokkosSparse_cluster_gauss_seidel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@

#include "KokkosKernels_Utils.hpp"
#include <Kokkos_Core.hpp>
#include <Kokkos_Atomic.hpp>
#include <Kokkos_Timer.hpp>
#include <Kokkos_Bitset.hpp>
#include <Kokkos_Sort.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include "KokkosGraph_Distance1Color.hpp"
#include "KokkosKernels_BitUtils.hpp"
#include "KokkosKernels_SimpleUtils.hpp"
Expand Down
3 changes: 0 additions & 3 deletions src/sparse/impl/KokkosSparse_gauss_seidel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@

#include "KokkosKernels_Utils.hpp"
#include <Kokkos_Core.hpp>
#include <Kokkos_Atomic.hpp>
#include <Kokkos_Timer.hpp>
#include <Kokkos_Bitset.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include "KokkosGraph_Distance1Color.hpp"
#include "KokkosKernels_Uniform_Initialized_MemoryPool.hpp"
#include "KokkosKernels_BitUtils.hpp"
Expand Down
4 changes: 0 additions & 4 deletions src/sparse/impl/KokkosSparse_partitioning_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@

#include "KokkosKernels_Utils.hpp"
#include <Kokkos_Core.hpp>
#include <Kokkos_Atomic.hpp>
#include <Kokkos_Timer.hpp>
#include <Kokkos_Sort.hpp>
#include <Kokkos_Random.hpp>
#include <Kokkos_MemoryTraits.hpp>
#include <Kokkos_Parallel_Reduce.hpp>
#include "KokkosBlas1_fill.hpp"
#include "KokkosGraph_Distance1Color.hpp"
#include "KokkosKernels_Uniform_Initialized_MemoryPool.hpp"
Expand Down
Loading

0 comments on commit a674aad

Please sign in to comment.