aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-14 23:33:11 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-14 23:33:11 +0200
commit19271c6038361da26794ef360aeb322026f1f2ed (patch)
treea4bd52eaff92b39ad015db386e0a2ed2f750ee50 /src/benchmark.py
parent925db5a87f9ff7139db83c883205475e1dfd8ac1 (diff)
downloadallocbench-19271c6038361da26794ef360aeb322026f1f2ed.tar.gz
allocbench-19271c6038361da26794ef360aeb322026f1f2ed.zip
add raxml-ng benchmark
Diffstat (limited to 'src/benchmark.py')
-rw-r--r--src/benchmark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index df31068..d43c549 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -363,7 +363,7 @@ class Benchmark:
print_info0(i, "of", n, "\r", end='')
# Available substitutions in cmd
- substitutions = {"run": run}
+ substitutions = {"run": run, "alloc": alloc_name}
substitutions.update(self.__dict__)
substitutions.update(alloc)
if perm:
@@ -404,13 +404,13 @@ class Benchmark:
result = {}
- if res.returncode != 0 or "ERROR: ld.so" in res.stderr:
+ if res.returncode != 0 or "ERROR: ld.so" in res.stderr or "Segmentation fault" in res.stderr:
print()
print_debug("Stdout:\n" + res.stdout)
print_debug("Stderr:\n" + res.stderr)
if res.returncode != 0:
print_error("{} failed with exit code {} for {}".format(argv, res.returncode, alloc_name))
- else:
+ elif "ERROR: ld.so" in res.stderr:
print_error("Preloading of {} failed for {}".format(alloc["LD_PRELOAD"], alloc_name))
# parse and store results