Skip to content

Commit a750cdc

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

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
@@ -100,9 +100,6 @@ def __cuda_stream__(self):
100100
# launch kernel on PyTorch's stream
101101
launch(s, config, ker, *ker_args)
102102

103-
# Wait for our CUDA kernel to complete
104-
s.sync()
105-
106103
# check result
107104
assert torch.allclose(out, a.item() * x + y)
108105
print("Double precision test passed!")

0 commit comments

Comments
 (0)