Skip to content
Snippets Groups Projects
Commit 3e23a22a authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #181 from patrickmmartin/fix/performance_memory_exceeds

fix for some cases where the extreme memory sizes cause issues
parents 3fa7d0ec 5f9c11d4
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,11 @@ def main():
print("latency: %g s" % perf.transfer_latency(queue, tx_type))
for i in range(6, 31, 2):
bs = 1 << i
print("bandwidth @ %d bytes: %g GB/s" % (
bs, perf.transfer_bandwidth(queue, tx_type, bs)/1e9))
try:
result = "%g GB/s" % (perf.transfer_bandwidth(queue, tx_type, bs)/1e9)
except Exception as e:
result = "exception: %s" % e.__class__.__name__
print("bandwidth @ %d bytes: %s" % (bs, result))
if __name__ == "__main__":
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment