-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dd2c87
commit 87523d3
Showing
10 changed files
with
1,133 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...services/compute/batch/batch_schedulers/homegrown/easy_bf/EasyBackfillingBatchScheduler.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Copyright (c) 2017-2019. The WRENCH Team. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
*/ | ||
|
||
#ifndef WRENCH_EASYBACKFILLINGBATCHSCHEDULER_H | ||
#define WRENCH_EASYBACKFILLINGBATCHSCHEDULER_H | ||
|
||
#include "wrench/services/compute/batch/BatchComputeService.h" | ||
#include "wrench/services/compute/batch/batch_schedulers/homegrown/HomegrownBatchScheduler.h" | ||
#include <wrench/services/compute/batch/batch_schedulers/homegrown/conservative_bf/NodeAvailabilityTimeLine.h> | ||
|
||
namespace wrench { | ||
|
||
/***********************/ | ||
/** \cond INTERNAL */ | ||
/***********************/ | ||
|
||
/** | ||
* @brief A class that defines a easy backfilling batch scheduler | ||
*/ | ||
class EasyBackfillingBatchScheduler : public HomegrownBatchScheduler { | ||
|
||
public: | ||
explicit EasyBackfillingBatchScheduler(BatchComputeService *cs, int depth); | ||
|
||
void processQueuedJobs() override; | ||
|
||
void processJobSubmission(std::shared_ptr<BatchJob> batch_job) override; | ||
void processJobFailure(std::shared_ptr<BatchJob> batch_job) override; | ||
void processJobCompletion(std::shared_ptr<BatchJob> batch_job) override; | ||
void processJobTermination(std::shared_ptr<BatchJob> batch_job) override; | ||
|
||
void compactSchedule(); | ||
|
||
std::map<simgrid::s4u::Host *, std::tuple<unsigned long, sg_size_t>> scheduleOnHosts(unsigned long, unsigned long, sg_size_t) override; | ||
|
||
std::map<std::string, double> | ||
getStartTimeEstimates(std::set<std::tuple<std::string, unsigned long, unsigned long, sg_size_t>> set_of_jobs) override; | ||
|
||
private: | ||
std::unique_ptr<NodeAvailabilityTimeLine> schedule; | ||
int _depth; | ||
}; | ||
|
||
|
||
/***********************/ | ||
/** \endcond */ | ||
/***********************/ | ||
}// namespace wrench | ||
|
||
|
||
#endif//WRENCH_EASYBACKFILLINGBATCHSCHEDULER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.