Backend for the HTCondor batch system.
More...
#include <CondorBackend.h>
Backend for the HTCondor batch system.
Currently submits all jobs individually and asynchronously waits for them to finish.
Definition at line 23 of file CondorBackend.h.
◆ addResult()
void benchmax::Backend::addResult |
( |
const Tool * |
tool, |
|
|
const fs::path & |
file, |
|
|
BenchmarkResult && |
result |
|
) |
| |
|
inlineinherited |
◆ collect_results()
virtual bool benchmax::Backend::collect_results |
( |
const Jobs & |
, |
|
|
bool |
|
|
) |
| |
|
inlineprotectedvirtualinherited |
◆ collectResults()
void benchmax::CondorBackend::collectResults |
( |
std::size_t |
ID | ) |
|
|
inlineprivate |
◆ execute()
virtual void benchmax::CondorBackend::execute |
( |
const Tool * |
, |
|
|
const fs::path & |
|
|
) |
| |
|
inlineprotectedvirtual |
◆ finalize()
virtual void benchmax::Backend::finalize |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
Hook to allow for asynchronous backends to wait for jobs to terminate.
Definition at line 45 of file Backend.h.
◆ generateSubmitFile()
std::string benchmax::CondorBackend::generateSubmitFile |
( |
std::size_t |
ID, |
|
|
const Tool & |
tool, |
|
|
const BenchmarkSet & |
b |
|
) |
| |
|
inlineprivate |
Generate a submit file for the given job.
Definition at line 32 of file CondorBackend.h.
◆ madeProgress()
void benchmax::Backend::madeProgress |
( |
std::size_t |
files = 1 | ) |
|
|
inlineprotectedinherited |
Can be called to give information about the current progress, if available.
Definition at line 51 of file Backend.h.
◆ process_results()
void benchmax::Backend::process_results |
( |
const Jobs & |
jobs, |
|
|
bool |
check_finished |
|
) |
| |
|
inlineinherited |
◆ run()
void benchmax::CondorBackend::run |
( |
const Jobs & |
, |
|
|
bool |
|
|
) |
| |
|
inline |
◆ runAndWait()
void benchmax::CondorBackend::runAndWait |
( |
std::size_t |
ID, |
|
|
const std::string & |
submitFile, |
|
|
std::atomic< bool > & |
it |
|
) |
| |
|
inlineprivate |
Run the given job and wait for its results.
Definition at line 72 of file CondorBackend.h.
◆ sanitize_results()
void benchmax::Backend::sanitize_results |
( |
const Jobs & |
jobs | ) |
const |
|
inlineprotectedinherited |
◆ startTool()
virtual void benchmax::Backend::startTool |
( |
const Tool * |
| ) |
|
|
inlineprotectedvirtualinherited |
Hook for every tool at the beginning.
Can be used to upload the tool to some remote system.
Definition at line 41 of file Backend.h.
◆ suspendable()
bool benchmax::Backend::suspendable |
( |
| ) |
const |
|
inlineinherited |
◆ write_results()
void benchmax::Backend::write_results |
( |
const Jobs & |
jobs | ) |
const |
|
inlineprotectedinherited |
◆ mExpectedJobs
std::size_t benchmax::Backend::mExpectedJobs |
|
protectedinherited |
Number of jobs that should be run.
Definition at line 29 of file Backend.h.
◆ mFinishedJobs
std::atomic<std::size_t> benchmax::Backend::mFinishedJobs |
|
protectedinherited |
Number of jobs that are finished.
Definition at line 31 of file Backend.h.
◆ mLastPercent
std::atomic<std::size_t> benchmax::Backend::mLastPercent |
|
protectedinherited |
◆ mResults
Results benchmax::Backend::mResults |
|
privateinherited |
◆ processes
std::list<std::atomic<bool> > benchmax::CondorBackend::processes |
|
private |
List of processes that are currently running.
Definition at line 29 of file CondorBackend.h.
The documentation for this class was generated from the following file: