Skip to content

Commit

Permalink
#1667 clean up configs/types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Feb 8, 2022
1 parent 0ba7993 commit f8f74d1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/vt/collective/reduce/scoping/strong_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

#include "vt/configs/types/types_type.h"
#include "vt/configs/types/types_sentinels.h"
#include "vt/epoch/epoch_type.h"
#include "vt/utils/strong/strong_type.h"

namespace vt { namespace collective { namespace reduce { namespace detail {
Expand Down
2 changes: 2 additions & 0 deletions src/vt/configs/debug/debug_var_unused.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#if !defined INCLUDED_VT_CONFIGS_DEBUG_DEBUG_VAR_UNUSED_H
#define INCLUDED_VT_CONFIGS_DEBUG_DEBUG_VAR_UNUSED_H

#include <utility>

#define vt_force_use(...) vt::debug::useVars(__VA_ARGS__);

namespace vt { namespace debug {
Expand Down
5 changes: 3 additions & 2 deletions src/vt/configs/error/stack_out.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@
#include <cstdlib>
#include <vector>
#include <tuple>
#include <string>

namespace vt { namespace debug { namespace stack {

using StackTupleType = std::tuple<int32_t,void*,std::string,std::size_t>;
using StackTupleType = std::tuple<int32_t, void *, std::string, std::size_t>;
using StackVectorType = std::vector<StackTupleType>;
using DumpStackType = std::tuple<std::string,StackVectorType>;
using DumpStackType = std::tuple<std::string, StackVectorType>;

/*
* This function automatically produce a backtrace of the stack with demangled
Expand Down
1 change: 1 addition & 0 deletions src/vt/configs/types/types_headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
#include "vt/configs/types/types_rdma.h"
#include "vt/configs/types/types_size.h"
#include "vt/configs/types/types_sentinels.h"
#include "vt/epoch/epoch_type.h"

#endif /*INCLUDED_VT_CONFIGS_TYPES_TYPES_HEADERS_H*/
1 change: 0 additions & 1 deletion src/vt/configs/types/types_rdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#if !defined INCLUDED_VT_CONFIGS_TYPES_TYPES_RDMA_H
#define INCLUDED_VT_CONFIGS_TYPES_TYPES_RDMA_H

#include "vt/configs/debug/debug_masterconfig.h"
#include "vt/configs/types/types_type.h"

#include <cstdint>
Expand Down
1 change: 0 additions & 1 deletion src/vt/configs/types/types_sentinels.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#if !defined INCLUDED_VT_CONFIGS_TYPES_TYPES_SENTINELS_H
#define INCLUDED_VT_CONFIGS_TYPES_TYPES_SENTINELS_H

#include "vt/configs/debug/debug_masterconfig.h"
#include "vt/configs/types/types_type.h"
#include "vt/configs/types/types_rdma.h"

Expand Down
3 changes: 0 additions & 3 deletions src/vt/configs/types/types_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,4 @@ using ActionNodeType = std::function<void(NodeType)>;

} // end namespace vt

// Include the epoch type, which is a strong, named type
#include "vt/epoch/epoch_type.h"

#endif /*INCLUDED_VT_CONFIGS_TYPES_TYPES_TYPE_H*/
1 change: 1 addition & 0 deletions src/vt/context/runnable_context/td.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "vt/context/runnable_context/base.h"
#include "vt/configs/types/types_type.h"
#include "vt/configs/types/types_sentinels.h"
#include "vt/epoch/epoch_type.h"

#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions src/vt/epoch/epoch_impl_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#if !defined INCLUDED_VT_EPOCH_EPOCH_IMPL_TYPE_H
#define INCLUDED_VT_EPOCH_EPOCH_IMPL_TYPE_H

#include <cstdint>

namespace vt { namespace epoch { namespace detail {

/// Epoch tag type for the strong type
Expand Down
2 changes: 2 additions & 0 deletions src/vt/utils/bits/bits_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#if !defined INCLUDED_VT_UTILS_BITS_BITS_COUNTER_H
#define INCLUDED_VT_UTILS_BITS_BITS_COUNTER_H

#include <vt/configs/types/types_type.h>

// Do not pull in other VT dependencies here

namespace vt { namespace utils {
Expand Down
3 changes: 3 additions & 0 deletions src/vt/utils/strong/strong_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
#if !defined INCLUDED_VT_UTILS_STRONG_STRONG_TYPE_H
#define INCLUDED_VT_UTILS_STRONG_STRONG_TYPE_H

#include <functional>
#include <type_traits>

namespace vt { namespace util { namespace strong { namespace detail {

/**
Expand Down

0 comments on commit f8f74d1

Please sign in to comment.