Skip to content

Commit a9584c8

Browse files
committed
Reset stats when changed
1 parent 642be44 commit a9584c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cuda_bindings/tests/test_cufile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,7 @@ def test_get_stats_l1():
21642164
cuda.cuMemFree(buf_ptr)
21652165

21662166
finally:
2167+
cufile.stats_reset()
21672168
os.close(fd)
21682169
with suppress(OSError):
21692170
os.unlink(file_path)
@@ -2263,6 +2264,7 @@ def test_get_stats_l2():
22632264
cuda.cuMemFree(buf_ptr)
22642265

22652266
finally:
2267+
cufile.stats_reset()
22662268
os.close(fd)
22672269
with suppress(OSError):
22682270
os.unlink(file_path)
@@ -2373,6 +2375,7 @@ def test_get_stats_l3():
23732375
cuda.cuMemFree(buf_ptr)
23742376

23752377
finally:
2378+
cufile.stats_reset()
23762379
os.close(fd)
23772380
with suppress(OSError):
23782381
os.unlink(file_path)

0 commit comments

Comments
 (0)