triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
13.41k stars 1.64k forks source link

[TEST] Majority of `test_bitwise_op` cases don't generate any artifacts #4634

Open minjang opened 2 months ago

minjang commented 2 months ago
python3 -m pytest -n 10 "python/test/unit/language/test_core.py" -k "test_bitwise_op[" --device cuda

1587 items are all passed.

But when I look at the triton cache directory, only 576 ptx files were generated. Around ~60% testing cases didn't generate any artifacts.

Not a serious issue. Just reporting it.

lijinpei commented 1 month ago

The test cases expects floating point input to trigger a compilation error https://github.com/triton-lang/triton/blob/576426bccfb9a2c90f2abaa405995738d4a79403/python/test/unit/language/test_core.py#L572 , which means only (4 / 12) * (4 / 12) == 4 / 9 will generate artifact.