aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:12:30 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:12:30 +0100
commit7017f4774c5e33a84ddf662af9689b7b4ab290ce (patch)
treee602ad30bf8521c8c4a187bcfe4d00d8c2baea66 /src/benchmark.py
parenta2ba38e85297ffc101b5db4a9b9f45330d224ca4 (diff)
parent64adaca5ef13770988dc732e23d17d5df10a58cc (diff)
downloadallocbench-7017f4774c5e33a84ddf662af9689b7b4ab290ce.tar.gz
allocbench-7017f4774c5e33a84ddf662af9689b7b4ab290ce.zip
Merge branch 'master' into align_to_cl
Diffstat (limited to 'src/benchmark.py')
-rw-r--r--src/benchmark.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index c96ff18..a8ec0c4 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -1,3 +1,21 @@
+# Copyright 2018-2020 Florian Fischer <florian.fl.fischer@fau.de>
+#
+# This file is part of allocbench.
+#
+# allocbench 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.
+#
+# allocbench is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
+"""Benchmark class providing general purpose implementation of required methods"""
+
import atexit
from collections import namedtuple
import errno
@@ -441,7 +459,7 @@ class Benchmark:
# we measure the cmd -> prepare it accordingly
if self.servers == []:
- argv = self.prepare_argv(self.cmd, alloc, os.environ, substitutions)
+ argv = self.prepare_argv(self.cmd, os.environ, alloc, substitutions)
# we measure the server -> run cmd as it is
else:
argv = self.prepare_argv(self.cmd, substitutions=substitutions, prepend=False)