Skip to content

Commit

Permalink
Add a workaround for LLVM bug causing test failure on Skylake CPU.
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Enkovich <[email protected]>
  • Loading branch information
ienkovich committed Jun 17, 2024
1 parent 5169013 commit e9c0801
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/test/unit/language/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,12 @@ def test_cast(dtype_x, dtype_z, bitcast, size, num_ctas, device):
if is_cpu() and (dtype_x in torch_float8_dtypes or dtype_z in torch_float8_dtypes):
pytest.skip(f'test_cast{(dtype_x, dtype_z)} is not supported on CPU.')

# fptrunc fp32->fp16 is broken in LLVM for large vectors:
# https://github.com/llvm/llvm-project/issues/95274
# TODO: remove the change after the bug is fixed.
if is_cpu() and dtype_x == "float32" and dtype_z == "float16":
size = 512

# bf16 vector cast is broken in LLVM for large vectors:
# https://github.com/llvm/llvm-project/issues/92471
# TODO: Remove the change after the bug is fixed.
Expand Down

0 comments on commit e9c0801

Please sign in to comment.