Skip to content

Commit

Permalink
Merge pull request #396 from CNugteren/CLBlast-395-fix-benchmark-script
Browse files Browse the repository at this point in the history
Fix a Python 3 bug in the benchmark script
  • Loading branch information
CNugteren authored Oct 3, 2020
2 parents b4cd2b0 + 0abd62a commit 46fb748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46fb748

Please sign in to comment.