We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad73ad commit 8b2ec64Copy full SHA for 8b2ec64
intermediate_source/pinmem_nonblock.py
@@ -192,7 +192,8 @@ def timer(cmd):
192
bar_labels = [
193
"pageable_tensor.to(device) (1x)",
194
f"pinned_tensor.to(device) ({r1:4.2f}x)",
195
- f"pageable_tensor.pin_memory().to(device) ({r2:4.2f}x)",
+ f"pageable_tensor.pin_memory().to(device) ({r2:4.2f}x)"
196
+ f"\npin_memory()={100*pin_mem/pin_mem_to_device:.2f}\% of runtime.",
197
]
198
values = [pageable_to_device, pinned_to_device, pin_mem_to_device]
199
colors = ["tab:blue", "tab:red", "tab:orange"]
0 commit comments