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 e31eae4 commit c3e9927Copy full SHA for c3e9927
cuda_core/tests/test_stream.py
@@ -51,10 +51,11 @@ def test_stream_record_invalid_event(init_cuda):
51
stream.record(event="invalid_event")
52
53
def test_stream_wait_event(init_cuda):
54
- stream = Device().create_stream(options=StreamOptions())
55
- event = Event._init()
56
- stream.record(event)
57
- stream.wait(event) # Should not raise any exceptions
+ s1 = Device().create_stream()
+ s2 = Device().create_stream()
+ e1 = s1.record()
+ s2.wait(e1) # Should not raise any exceptions
58
+ s2.sync()
59
60
def test_stream_wait_invalid_event(init_cuda):
61
stream = Device().create_stream(options=StreamOptions())
0 commit comments