Skip to content

Commit

Permalink
Remove straggler unvendorized includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Oct 13, 2022
1 parent e755c4f commit 96b0e88
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions include/uit/ducts/proc/impl/backend/PooledBackEnd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include "../../../../../../third-party/Empirical/third-party/robin-hood-hashing/src/include/robin_hood.h"

#include "../../../../../../third-party/Empirical/include/emp/base/assert.hpp"
#include "../../../../../../third-party/Empirical/include/emp/datastructs/tuple_utils.hpp"
#include "../../../../../uit_emp/base/assert.hpp"
#include "../../../../../uit_emp/datastructs/tuple_utils.hpp"

#include "../../../../setup/InterProcAddress.hpp"

Expand Down
2 changes: 0 additions & 2 deletions include/uitsl/debug/OccupancyCaps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include <tuple>
#include <unordered_map>

#include "../../../third-party/Empirical/include/emp/tools/string_utils.hpp"

#include "OccupancyCap.hpp"

namespace uitsl {
Expand Down
6 changes: 5 additions & 1 deletion include/uitsl/fetch/fetch_native.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <curl/curl.h>

#include "../../../third-party/Empirical/include/emp/base/always_assert.hpp"
#include "../../uit_emp/base/always_assert.hpp"

#include "../debug/err_verify.hpp"
#include "../nonce/ScopeGuard.hpp"
Expand All @@ -20,6 +20,8 @@
#include "make_temp_filepath.hpp"
#include "resolve_fetched_filename.hpp"

#include "../../uit_emp/vendorization/push_assert_macros.hh"

namespace uitsl {

/*
Expand Down Expand Up @@ -97,4 +99,6 @@ inline std::filesystem::path fetch_native( const std::string& url ) {

} // namespace uitsl

#include "../../uit_emp/vendorization/pop_assert_macros.hh"

#endif // #ifndef UITSL_FETCH_FETCH_NATIVE_HPP_INCLUDE
10 changes: 8 additions & 2 deletions include/uitsl/math/math_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@
#define UITSL_MATH_MATH_UTILS_HPP_INCLUDE

#include <bitset>
#include <cassert>
#include <cmath>
#include <limits>
#include <ratio>
#include <stddef.h>

#include "../../uit_emp/base/assert.hpp"
#include "../../uit_emp/math/math.hpp"

#include "../debug/safe_cast.hpp"

#include "../../uit_emp/vendorization/push_assert_macros.hh"

namespace uitsl {

template<typename ...Args> auto sum(Args ...args) { return (args + ...); }

inline size_t mod(int in_val, const size_t mod_val) {
emp_assert(mod_val > 0);
assert(mod_val > 0);
const int signed_mod_val = std::min(
safe_cast<size_t>(std::numeric_limits<int>::max()),
mod_val
Expand All @@ -27,7 +31,7 @@ inline size_t mod(int in_val, const size_t mod_val) {
}

inline size_t circular_index(const size_t pos, const size_t len, const int diff) {
emp_assert(len > 0);
assert(len > 0);
return (pos + mod(diff, len)) % len;
}

Expand Down Expand Up @@ -81,4 +85,6 @@ size_t sidebyside_hash(const size_t top, const size_t bottom) {

} // namespace uitsl

#include "../../uit_emp/vendorization/pop_assert_macros.hh"

#endif // #ifndef UITSL_MATH_MATH_UTILS_HPP_INCLUDE
2 changes: 1 addition & 1 deletion include/uitsl/mpi/mpi_audit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <mpi.h>

#include "../../../third-party/Empirical/include/emp/base/assert.hpp"
#include "../../uit_emp/base/assert.hpp"

#include "name_mpi_error.hpp"

Expand Down
5 changes: 2 additions & 3 deletions include/uitsl/mpi/status_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
#ifndef UITSL_MPI_STATUS_UTILS_HPP_INCLUDE
#define UITSL_MPI_STATUS_UTILS_HPP_INCLUDE

#include <cassert>
#include <sstream>
#include <string>

#include <mpi.h>

#include "../../../third-party/Empirical/include/emp/base/assert.hpp"

#include "../utility/print_utils.hpp"

#include "audited_routines.hpp"
Expand All @@ -23,7 +22,7 @@ inline int get_count(const MPI_Status& status, const MPI_Datatype& datatype) {
datatype, // MPI_Datatype datatype: datatype of each receive buffer element
&res // int *count: number of received elements (integer)
);
emp_assert( res != MPI_UNDEFINED );
assert( res != MPI_UNDEFINED );
return res;
}

Expand Down
2 changes: 0 additions & 2 deletions include/uitsl/parallel/ThreadIbarrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <stddef.h>
#include <unordered_map>

#include "../../../third-party/Empirical/include/emp/base/assert.hpp"

#include "../debug/OncePerThreadChecker.hpp"

#include "ThreadMap.hpp"
Expand Down

0 comments on commit 96b0e88

Please sign in to comment.