summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2020-10-03 10:50:43 +0200
committerGitHub <noreply@github.com>2020-10-03 10:50:43 +0200
commit46fb748a96153b419f25218f8fd9a38a30becf24 (patch)
tree239958ee83a8fcb56ed5626c425d5771a678aa05
parentb4cd2b04e9cf775e20c28ded5b1b86d2958a4fe1 (diff)
parent0abd62a0e7c9e98bcbdb7a8bd3aba5df89b8fa6e (diff)
Merge pull request #396 from CNugteren/CLBlast-395-fix-benchmark-script
Fix a Python 3 bug in the benchmark script
-rw-r--r--scripts/benchmark/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/benchmark/utils.py b/scripts/benchmark/utils.py
index 11aad805..fe0bd7f7 100644
--- a/scripts/benchmark/utils.py
+++ b/scripts/benchmark/utils.py
@@ -50,7 +50,8 @@ def run_binary(command, arguments):
full_command = command + " " + " ".join(arguments)
print("[benchmark] Calling binary: %s" % str(full_command))
try:
- return subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE).stdout.read()
+ result = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE).stdout.read()
+ return result.decode("ascii")
except OSError as e:
print("[benchmark] Error while running the binary, got exception: %s" + str(e))
return False