Skip to content

Commit b90698f

Browse files
eqypytorchmergebot
authored andcommitted
[CUDA] try to abate some flakiness in test_stream_event_nogil (pytorch#148796)
threshold twiddling as one in a few dozen runs tend to fail the current threshold Pull Request resolved: pytorch#148796 Approved by: https://github.com/Skylion007
1 parent 215f856 commit b90698f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_cuda_multigpu.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,8 @@ def test_stream_event_nogil(self):
815815
# it may vary on different hardware in different environments.
816816
# Therefore, this test uses relative comparisons, checking if the
817817
# sum of parent and child threads execution time is greater than the
818-
# real execution time by least 40%.
819-
self.assertGreater(parent_time + child_time, total_time * 1.4)
818+
# real execution time by least 30%.
819+
self.assertGreater(parent_time + child_time, total_time * 1.3)
820820

821821
# This test is flaky for ROCm, see issue #62602
822822
@skipIfRocm

0 commit comments

Comments
 (0)