Skip to content

Commit

Permalink
[Core] Hotfix Windows Compilation Error for ClusterTaskManager (ray-p…
Browse files Browse the repository at this point in the history
…roject#13754)

* [Core] Hotfix Windows Compilation Error for ClusterTaskManager

* fix
  • Loading branch information
simon-mo authored Jan 28, 2021
1 parent c10abbb commit 4f1f558
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ray/raylet/scheduling/cluster_task_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,15 @@ bool ClusterTaskManager::AnyPendingTasks(Task *exemplar, bool *any_pending,
std::string ClusterTaskManager::DebugStr() const {
// TODO(Shanly): This method will be replaced with `DebugString` once we remove the
// legacy scheduler.
auto accumulator = [](int state, const std::pair<int, std::deque<Work>> &pair) {
auto accumulator = [](size_t state, const std::pair<int, std::deque<Work>> &pair) {
return state + pair.second.size();
};
int num_infeasible_tasks =
std::accumulate(infeasible_tasks_.begin(), infeasible_tasks_.end(), 0, accumulator);
int num_tasks_to_schedule = std::accumulate(tasks_to_schedule_.begin(),
tasks_to_schedule_.end(), 0, accumulator);
int num_tasks_to_dispatch = std::accumulate(tasks_to_dispatch_.begin(),
tasks_to_dispatch_.end(), 0, accumulator);
size_t num_infeasible_tasks = std::accumulate(
infeasible_tasks_.begin(), infeasible_tasks_.end(), (size_t)0, accumulator);
size_t num_tasks_to_schedule = std::accumulate(
tasks_to_schedule_.begin(), tasks_to_schedule_.end(), (size_t)0, accumulator);
size_t num_tasks_to_dispatch = std::accumulate(
tasks_to_dispatch_.begin(), tasks_to_dispatch_.end(), (size_t)0, accumulator);
std::stringstream buffer;
buffer << "========== Node: " << self_node_id_ << " =================\n";
buffer << "Infeasible queue length: " << num_infeasible_tasks << "\n";
Expand Down

0 comments on commit 4f1f558

Please sign in to comment.