inductor/test_fp8 tests are failing because of AssertionError: BackendCompilerFailed not raised on main branch
Tests Failing:
test_bad_cast_cpu
Env details:
PyTorch version: 2.10.0
Branch: main
OS: RHEL 9.6
CPU: Intel
python version: 3.12
commit id : 6de6685797cabc6256df76803f3a5f772d5275a7 (tag: trunk/6de6685797cabc6256df76803f3a5f772d5275a7, origin/main, origin/HEAD)
Steps to repro:
- Log in to H200.
- Login to quay.io: podman login quay.io
- Pull base image: podman pull quay.io/aipcc/pytorch:rhel_cuda_build_without_pins
- Run the image and specify the GPU to be used: podman run -it <IMAGE_NAME>
- Run the PyTorch UT: TEST_CONFIG=cpu python3 test/run_test.py -i inductor/test_fp8
Expected result: UTs should run fine.
Actual result:AssertionError: BackendCompilerFailed not raised - The test test_bad_cast_cpu expects a BackendCompilerFailed exception to be raised when performing an invalid FP8 cast operation, but the exception is not raised. The test uses assertRaisesRegex to verify that bad cast operations are properly caught and reported by the backend compiler, but the operation either succeeds or fails with a different exception, causing the test assertion to fail.
Logs are attached below