Skip to content

Commit

Permalink
Move headers to KokkosComm/
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Aug 12, 2024
1 parent dc74642 commit 2c2bc5f
Show file tree
Hide file tree
Showing 38 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion perf_tests/test_2dhalo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "test_utils.hpp"

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion perf_tests/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
//@HEADER

#include "mpi/impl/KokkosComm_include_mpi.hpp"
#include "KokkosComm/mpi/impl/include_mpi.hpp"

#include <Kokkos_Core.hpp>
#include <benchmark/benchmark.h>
Expand Down
2 changes: 1 addition & 1 deletion perf_tests/test_osu_latency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// (NBCL), The Ohio State University.

#include "test_utils.hpp"
#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

template <typename Space, typename View>
void osu_latency_Kokkos_Comm_sendrecv(benchmark::State &, MPI_Comm, KokkosComm::Handle<> &h, const View &v) {
Expand Down
2 changes: 1 addition & 1 deletion perf_tests/test_sendrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "test_utils.hpp"

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

template <KokkosComm::mpi::CommunicationMode Mode, typename Space, typename View>
void send_recv(benchmark::State &, MPI_Comm comm, const Space &space, int rank, const View &v) {
Expand Down
2 changes: 1 addition & 1 deletion perf_tests/test_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <benchmark/benchmark.h>

#include "mpi/impl/KokkosComm_include_mpi.hpp"
#include "KokkosComm/mpi/impl/include_mpi.hpp"

// F is a function that takes (state, MPI_Comm, args...)
template <typename F, typename... Args>
Expand Down
28 changes: 14 additions & 14 deletions src/KokkosComm.hpp → src/KokkosComm/KokkosComm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@

#pragma once

#include "KokkosComm_fwd.hpp"
#include "fwd.hpp"

// transport declarations
// TODO: could probably be moved to a per-transport file to be included
#if defined(KOKKOSCOMM_ENABLE_MPI)
#include "mpi/KokkosComm_mpi.hpp"
#include "mpi/KokkosComm_mpi_send.hpp"
#include "mpi/KokkosComm_mpi_allgather.hpp"
#include "mpi/KokkosComm_mpi_alltoall.hpp"
#include "mpi/KokkosComm_mpi_barrier.hpp"
#include "mpi/KokkosComm_mpi_handle.hpp"
#include "mpi/KokkosComm_mpi_irecv.hpp"
#include "mpi/KokkosComm_mpi_isend.hpp"
#include "mpi/KokkosComm_mpi_recv.hpp"
#include "mpi/KokkosComm_mpi_reduce.hpp"
#include "mpi/mpi.hpp"
#include "mpi/send.hpp"
#include "mpi/allgather.hpp"
#include "mpi/alltoall.hpp"
#include "mpi/barrier.hpp"
#include "mpi/handle.hpp"
#include "mpi/irecv.hpp"
#include "mpi/isend.hpp"
#include "mpi/recv.hpp"
#include "mpi/reduce.hpp"
#else
#error at least one transport must be defined
#endif

#include "KokkosComm_concepts.hpp"
#include "KokkosComm_point_to_point.hpp"
#include "KokkosComm_collective.hpp"
#include "concepts.hpp"
#include "point_to_point.hpp"
#include "collective.hpp"

#include <Kokkos_Core.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_fwd.hpp"
#include "KokkosComm_concepts.hpp"
#include "fwd.hpp"
#include "concepts.hpp"

namespace KokkosComm {

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/KokkosComm_fwd.hpp → src/KokkosComm/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <vector>

#include "KokkosComm_concepts.hpp"
#include "concepts.hpp"
#include "KokkosComm_config.hpp"

namespace KokkosComm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_concepts.hpp"
#include "KokkosComm_traits.hpp"
#include "concepts.hpp"
#include "traits.hpp"

namespace KokkosComm::Impl {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_traits.hpp"
#include "impl/KokkosComm_pack_traits.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "impl/KokkosComm_types.hpp"
#include "KokkosComm/traits.hpp"
#include "impl/pack_traits.hpp"
#include "impl/include_mpi.hpp"
#include "impl/types.hpp"

namespace KokkosComm::mpi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_traits.hpp"
#include "impl/KokkosComm_pack_traits.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "impl/KokkosComm_types.hpp"
#include "KokkosComm/traits.hpp"
#include "impl/pack_traits.hpp"
#include "impl/include_mpi.hpp"
#include "impl/types.hpp"

namespace KokkosComm::Impl {
template <KokkosExecutionSpace ExecSpace, KokkosView SendView, KokkosView RecvView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "KokkosComm_concepts.hpp"
#include "KokkosComm/concepts.hpp"

namespace KokkosComm {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#pragma once

#include "KokkosComm_fwd.hpp"
#include "KokkosComm/fwd.hpp"

#include "KokkosComm_mpi_req.hpp"
#include "req.hpp"

namespace KokkosComm {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#pragma once

#include "KokkosComm_traits.hpp"
#include "KokkosComm_concepts.hpp"
#include "KokkosComm/traits.hpp"
#include "KokkosComm/concepts.hpp"

#include "KokkosComm_packer.hpp"
#include "packer.hpp"

namespace KokkosComm {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#pragma once

#include "KokkosComm_concepts.hpp"
#include "KokkosComm_traits.hpp"
#include "KokkosComm_types.hpp"
#include "KokkosComm_include_mpi.hpp"
#include "KokkosComm/concepts.hpp"
#include "KokkosComm/traits.hpp"
#include "types.hpp"
#include "include_mpi.hpp"

// todo: redo this using KokkosComm_contiguous

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "KokkosComm_include_mpi.hpp"
#include "include_mpi.hpp"

#include <Kokkos_Core.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include "KokkosComm_mpi.hpp"
#include "impl/KokkosComm_tags.hpp"
#include "mpi.hpp"
#include "impl/tags.hpp"

namespace KokkosComm {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

#pragma once

#include "KokkosComm_traits.hpp"
#include "KokkosComm/traits.hpp"

#include "KokkosComm_mpi.hpp"
#include "impl/KokkosComm_types.hpp"
#include "impl/KokkosComm_tags.hpp"
#include "KokkosComm_mpi_commmode.hpp"
#include "mpi.hpp"
#include "impl/types.hpp"
#include "impl/tags.hpp"
#include "commmode.hpp"

namespace KokkosComm {

Expand Down
4 changes: 2 additions & 2 deletions src/mpi/KokkosComm_mpi.hpp → src/KokkosComm/mpi/mpi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <type_traits>

#include "KokkosComm_concepts.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "../concepts.hpp"
#include "impl/include_mpi.hpp"

namespace KokkosComm {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_concepts.hpp"
#include "KokkosComm_traits.hpp"
#include "impl/KokkosComm_pack_traits.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "KokkosComm/concepts.hpp"
#include "KokkosComm/traits.hpp"
#include "impl/pack_traits.hpp"
#include "impl/include_mpi.hpp"

namespace KokkosComm::mpi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_traits.hpp"
#include "impl/KokkosComm_pack_traits.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "impl/KokkosComm_types.hpp"
#include "KokkosComm/traits.hpp"
#include "impl/pack_traits.hpp"
#include "impl/include_mpi.hpp"
#include "impl/types.hpp"

namespace KokkosComm::mpi {

Expand Down
4 changes: 2 additions & 2 deletions src/mpi/KokkosComm_mpi_req.hpp → src/KokkosComm/mpi/req.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include <utility>
#include <functional>

#include "KokkosComm_fwd.hpp"
#include "KokkosComm/fwd.hpp"

#include "KokkosComm_mpi.hpp"
#include "mpi.hpp"

namespace KokkosComm {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_mpi_commmode.hpp"
#include "impl/KokkosComm_pack_traits.hpp"
#include "impl/KokkosComm_include_mpi.hpp"
#include "commmode.hpp"
#include "impl/pack_traits.hpp"
#include "impl/include_mpi.hpp"

namespace KokkosComm::mpi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <Kokkos_Core.hpp>

#include "KokkosComm_fwd.hpp"
#include "KokkosComm_concepts.hpp"
#include "fwd.hpp"
#include "concepts.hpp"

namespace KokkosComm {

Expand Down
4 changes: 2 additions & 2 deletions src/KokkosComm_traits.hpp → src/KokkosComm/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
//@HEADER

/*! \brief Defines a common interface for Kokkos::View-like types
\file KokkosComm_traits.hpp
\file traits.hpp
*/

#pragma once

#include <type_traits>

#include "KokkosComm_concepts.hpp"
#include "concepts.hpp"

namespace KokkosComm {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/mpi/test_allgather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <gtest/gtest.h>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/mpi/test_alltoall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <gtest/gtest.h>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/mpi/test_isendrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <gtest/gtest.h>
#include <type_traits>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/mpi/test_reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <gtest/gtest.h>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/mpi/test_sendrecv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <gtest/gtest.h>
#include <type_traits>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/test_barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <gtest/gtest.h>

#include "KokkosComm.hpp"
#include "KokkosComm/KokkosComm.hpp"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion unit_tests/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <KokkosComm_config.hpp>
#include <Kokkos_Core.hpp>

#include "mpi/impl/KokkosComm_include_mpi.hpp"
#include "KokkosComm/mpi/impl/include_mpi.hpp"

class MpiEnvironment : public ::testing::Environment {
public:
Expand Down
Loading

0 comments on commit 2c2bc5f

Please sign in to comment.