Merge pull request #396 from CNugteren/CLBlast-395-fix-benchmark-script

Fix a Python 3 bug in the benchmark script
pull/397/head
Cedric Nugteren 2020-10-03 10:50:43 +02:00 committed by GitHub
commit 46fb748a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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