Adding support for execution on slurm grids

- Adding support for SlurmTaskExecutor in `daggyd` if DAGGY_ENABLE_SLURM is defined.
- Renaming some test cases
- Enabling compile-time slurm support
- Adding slurm documentation
This commit is contained in:
Ian Roddis
2021-09-10 10:53:58 -03:00
parent d15580f47f
commit d731f9f5b1
19 changed files with 460 additions and 31 deletions

View File

@@ -7,7 +7,7 @@
using namespace daggy;
TEST_CASE("Threadpool Construction", "[threadpool]") {
TEST_CASE("threadpool", "[threadpool]") {
std::atomic<uint32_t> cnt(0);
ThreadPool tp(10);
@@ -22,7 +22,7 @@ TEST_CASE("Threadpool Construction", "[threadpool]") {
return cnt.load();
})));
tp.addTasks(tq);
for (auto &r : res) r.get();
for (auto &r: res) r.get();
REQUIRE(cnt == 100);
}
@@ -35,7 +35,7 @@ TEST_CASE("Threadpool Construction", "[threadpool]") {
cnt++;
return;
}));
for (auto &r : res) r.get();
for (auto &r: res) r.get();
REQUIRE(cnt == 100);
}
}