Skip to content
Snippets Groups Projects
Commit 5f9c11d4 authored by Patrick Martin's avatar Patrick Martin
Browse files

fix for some cases where the extreme memory sizes cause issues

parent 3fa7d0ec
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