Skip to content

Commit 66964ee

Browse files
msaroufimleofang
andauthored
Update pytorch_example.py
Co-authored-by: Leo Fang <leo80042@gmail.com>
1 parent 5f68dbe commit 66964ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cuda_core/examples/pytorch_example.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ def __cuda_stream__(self):
7373
# launch kernel on our stream
7474
launch(s, config, ker, *ker_args)
7575

76-
# Wait for our CUDA kernel to complete
77-
s.sync()
78-
7976
# check result
8077
assert torch.allclose(out, a.item() * x + y)
8178
print("Single precision test passed!")

0 commit comments

Comments
 (0)