Skip to content

Add regression tests for Int128 and BFloat16 kernels - #794

Merged
maleadt merged 2 commits into
mainfrom
tb/int128-bfloat16
Dec 3, 2026
Merged

maleadt merged 2 commits into
mainfrom
tb/int128-bfloat16

Conversation

@maleadt

@maleadt maleadt commented Dec 3, 2026

Copy link
Copy Markdown
Member

Fixes #783.

The fixes themselves are upstream; this PR adds regression tests and the compat bump.

The new tests check that an Int128 kernel throws InvalidIRError, and that device BFloat16 + - * /, -Float32(x) and abs(Float32(x)) match the host bit for bit. Locally on an Arc A770, the full suite passes with the registered packages.

An Int128 kernel crashed the Khronos SPIR-V translator used on the LTS
stack, which GPUCompiler now rejects during IR validation. IGC rounded
the results of BFloat16 additions, subtractions and multiplications
towards zero, and applied `abs` to the bits of a BFloat16 value it
converted to Float32; both are fixed by IGC backports in libigc_jll.
GPUCompiler 2.26 rejects 128-bit integers during SPIR-V IR validation, which
the new Int128 regression test relies on.
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.90%. Comparing base (81fc9ea) to head (2d66113).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #794      +/-   ##
==========================================
- Coverage   87.66%   86.90%   -0.77%     
==========================================
  Files          56       55       -1     
  Lines        5715     5093     -622     
==========================================
- Hits         5010     4426     -584     
+ Misses        705      667      -38     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt
maleadt merged commit a2f9254 into main Dec 3, 2026
10 checks passed
@maleadt
maleadt deleted the tb/int128-bfloat16 branch December 3, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BFloat16 kernels fail with InvalidIRError, and Int128 kernels segfault the SPIR-V translator

1 participant