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.
2 parents ddc1f94 + 7811065 commit eeda1abCopy full SHA for eeda1ab
cuda_core/tests/test_event.py
@@ -43,4 +43,6 @@ def test_is_done(init_cuda):
43
options = EventOptions(enable_timing=False)
44
stream = Device().create_stream()
45
event = stream.record(options=options)
46
- assert event.is_done is True
+ # Without a sync, the captured work might not have yet completed
47
+ # Therefore this check should never raise an exception
48
+ assert event.is_done in (True, False)
0 commit comments