Skip to content

Commit f525ab5

Browse files
authored
bench: Call ata.destroy() (#6)
1 parent 9f9a3bc commit f525ab5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bench_all_to_all.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ def run() -> tuple[float, ...]:
220220
num_repeat = 20
221221
with torch.cuda.nvtx.range("bench"):
222222
result = torch.tensor([run() for _ in range(num_repeat)])
223+
224+
# Cleanup
225+
ata.destroy()
226+
223227
return (
224228
(dispatch_bytes, combine_bytes, a2a_bytes, nvshmem_bytes),
225229
result,

0 commit comments

Comments
 (0)