Skip to content

Commit cdea1f7

Browse files
committed
#1: comm: move VT and MPI implementations into their own directory
1 parent 8c75918 commit cdea1f7

File tree

13 files changed

+22
-16
lines changed

13 files changed

+22
-16
lines changed

examples/test_example.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <vt-lb/comm/comm_mpi.h>
2-
#include <vt-lb/comm/comm_vt.h>
1+
#include <vt-lb/comm/MPI/comm_mpi.h>
2+
#include <vt-lb/comm/VT/comm_vt.h>
33
#include <vt-lb/algo/driver/driver.h>
44

55
struct MyClass {

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
set(
22
TOP_LEVEL_SUBDIRS
3-
algo algo/baselb algo/temperedlb algo/driver
3+
algo
4+
algo/baselb algo/temperedlb algo/driver
45
comm
6+
comm/MPI comm/VT
57
input
68
model
79
)
File renamed without changes.

src/vt-lb/comm/class_handle.impl.h renamed to src/vt-lb/comm/MPI/class_handle.impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define INCLUDED_VT_LB_COMM_CLASS_HANDLE_IMPL_H
4646

4747
#include "class_handle.h"
48-
#include "comm_mpi.h"
48+
#include "vt-lb/comm/MPI/comm_mpi.h"
4949

5050
namespace vt_lb::comm {
5151

src/vt-lb/comm/comm_mpi.h renamed to src/vt-lb/comm/MPI/comm_mpi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555

5656
#include <checkpoint/checkpoint.h>
5757

58-
#include "vt-lb/comm/termination.h"
59-
#include "vt-lb/comm/class_handle.h"
58+
#include "vt-lb/comm/MPI/termination.h"
59+
#include "vt-lb/comm/MPI/class_handle.h"
6060

6161
/**
6262
* \namespace vt_lb::comm
@@ -456,6 +456,6 @@ inline void CommMPI::initTermination() {
456456

457457
} /* end namespace vt_lb::comm */
458458

459-
#include "class_handle.impl.h"
459+
#include "vt-lb/comm/MPI/class_handle.impl.h"
460460

461461
#endif /*INCLUDED_VT_LB_COMM_COMM_MPI_H*/

src/vt-lb/comm/termination.cc renamed to src/vt-lb/comm/MPI/termination.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
//@HEADER
4242
*/
4343

44-
#include "vt-lb/comm/termination.h"
45-
#include "vt-lb/comm/comm_mpi.h"
44+
#include "vt-lb/comm/MPI/termination.h"
45+
#include "vt-lb/comm/MPI/comm_mpi.h"
4646

4747
#define DEBUG_TERMINATION 0
4848

src/vt-lb/comm/termination.h renamed to src/vt-lb/comm/MPI/termination.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
#if !defined INCLUDED_VT_LB_COMM_TERMINATION_H
4545
#define INCLUDED_VT_LB_COMM_TERMINATION_H
4646

47+
#include "vt-lb/comm/MPI/class_handle.h"
48+
4749
#include <cstdint>
4850
#include <memory>
49-
#include "vt-lb/comm/class_handle.h"
5051

5152
namespace vt_lb::comm {
5253

5354
struct CommMPI;
55+
5456
template <typename T>
5557
struct ClassHandle;
5658

src/vt-lb/comm/comm_vt.cc renamed to src/vt-lb/comm/vt/comm_vt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//@HEADER
4242
*/
4343

44-
#include "vt-lb/comm/comm_vt.h"
44+
#include "vt-lb/comm/VT/comm_vt.h"
4545

4646
#include <vt/transport.h>
4747

src/vt-lb/comm/comm_vt.h renamed to src/vt-lb/comm/vt/comm_vt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ struct CommVT {
8585

8686
} /* end namespace vt_lb::comm */
8787

88-
#include "vt-lb/comm/comm_vt.impl.h"
88+
#include "vt-lb/comm/VT/comm_vt.impl.h"
8989

9090
#endif /*INCLUDED_VT_LB_COMM_COMM_VT_H*/

src/vt-lb/comm/comm_vt.impl.h renamed to src/vt-lb/comm/vt/comm_vt.impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
#if !defined INCLUDED_VT_LB_COMM_COMM_VT_IMPL_H
4545
#define INCLUDED_VT_LB_COMM_COMM_VT_IMPL_H
4646

47-
#include "vt-lb/comm/comm_vt.h"
48-
#include "vt-lb/comm/proxy_wrapper.h"
47+
#include "vt-lb/comm/VT/comm_vt.h"
48+
#include "vt-lb/comm/VT/proxy_wrapper.h"
4949
#include <vt/transport.h>
5050

5151
namespace vt_lb::comm {
@@ -64,6 +64,6 @@ void CommVT::send(vt::NodeType dest, ProxyT proxy, Args&&... args) {
6464

6565
} // namespace vt_lb::comm
6666

67-
#include "vt-lb/comm/proxy_wrapper.impl.h"
67+
#include "vt-lb/comm/VT/proxy_wrapper.impl.h"
6868

6969
#endif /* INCLUDED_VT_LB_COMM_COMM_VT_IMPL_H */

0 commit comments

Comments
 (0)