From: Bruno Donassolo Date: Mon, 7 Mar 2022 12:50:21 +0000 (+0100) Subject: Fix build X-Git-Tag: v3.31~203 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ebd61a866a703e9059911354e176d76abb4be016 Fix build Remove boost container dependency and fix 32 bits build --- diff --git a/src/kernel/lmm/bmf.cpp b/src/kernel/lmm/bmf.cpp index 328f1819c4..6ebcfc2bd7 100644 --- a/src/kernel/lmm/bmf.cpp +++ b/src/kernel/lmm/bmf.cpp @@ -69,9 +69,9 @@ BmfSolver::BmfSolver(Eigen::MatrixXd A, Eigen::MatrixXd maxA, Eigen::VectorXd C, { xbt_assert(max_iteration_ > 0, "Invalid number of iterations for BMF solver. Please check your \"bmf/max-iterations\" configuration."); - xbt_assert(A_.cols() == maxA_.cols(), "Invalid number of cols in matrix A (%ld) or maxA (%ld)", A_.cols(), + xbt_assert(A_.cols() == maxA_.cols(), "Invalid number of cols in matrix A (%td) or maxA (%td)", A_.cols(), maxA_.cols()); - xbt_assert(A_.cols() == static_cast(phi_.size()), "Invalid size of phi vector (%ld)", phi_.size()); + xbt_assert(A_.cols() == phi_.size(), "Invalid size of phi vector (%td)", phi_.size()); xbt_assert(static_cast(C_shared_.size()) == C_.size(), "Invalid size param shared (%zu)", C_shared_.size()); } diff --git a/src/kernel/lmm/bmf.hpp b/src/kernel/lmm/bmf.hpp index afe62cb247..4ae56f9fb1 100644 --- a/src/kernel/lmm/bmf.hpp +++ b/src/kernel/lmm/bmf.hpp @@ -7,7 +7,6 @@ #define SURF_BMF_HPP #include "src/kernel/lmm/maxmin.hpp" -#include #include #include @@ -177,7 +176,7 @@ private: std::vector C_shared_; //!< shared_j Resource j is shared or not Eigen::VectorXd phi_; //!< phi_i bound for each player - std::unordered_set, boost::hash>> allocations_; + std::set> allocations_; //!< set of already tested allocations, since last identified loop AllocationGenerator gen_; std::vector allocations_age_; static constexpr int NO_RESOURCE = -1; //!< flag to indicate player has selected no resource