clpy icon indicating copy to clipboard operation
clpy copied to clipboard

TestGetRandomStateThreadSafe sometimes fails

Open nsakabe-fixstars opened this issue 5 years ago • 3 comments

https://github.com/fixstars/clpy/blob/26ef9b0571c2ffc216a1cf523b905ec0273e6b31/tests/clpy_tests/random_tests/test_generator.py#L522

Failed at: https://github.com/fixstars/clpy/pull/276#pullrequestreview-367721762

nsakabe-fixstars avatar Mar 03 '20 06:03 nsakabe-fixstars

Refer to https://github.com/cupy/cupy/pull/78

nsakabe-fixstars avatar Mar 19 '20 05:03 nsakabe-fixstars

The case failed 5 times in 100 repeats.

nsakabe-fixstars avatar Mar 19 '20 05:03 nsakabe-fixstars

Hypothesis: sequential clrandGenerator::_issue_by_np can be interleaved among threads

nsakabe-fixstars avatar Mar 19 '20 06:03 nsakabe-fixstars