Repository navigation
Test checked addition and subtraction - #1139
Conversation
Apple's macOS 26 back-end computes the overflow flag of signed 16 to 64-bit additions and subtractions wrongly, so checked arithmetic, and `Rational` `+` and `-` with a negative result, threw spurious OverflowErrors. GPUCompiler 2.22.1 expands them instead (JuliaGPU/GPUCompiler.jl#1086).
Benchmark resultsCompared with ffa589b10, the merge base. Times are the minimum time of every benchmark. A change is unusual when it exceeds both three times the benchmark's typical change between consecutive runs on the default branch and a minimum per category (performance 3%, latency 5%, applications 3%, other 3%). A benchmark that starts or stops allocating is listed however few the allocations. A single run can still be a fluke, so rerun before drawing conclusions.
All benchmarks
History: https://juliagpu.org/perf/?pkg=metal |
|
I don't think this is functional on 1.10/1.11. I'll open an issue or PR depending on how much I understand the robot's solution |
|
Oh this is #1138. |
Apple's macOS 26 back-end computes the overflow flag of signed 16 to 64-bit additions and subtractions wrongly:
0 + -1overflows,typemin + -1doesn't. Checked arithmetic therefore threw spuriousOverflowErrors, and so didRational+and-whenever the result was negative. That is the failure on the GitHub Actions runners of #1138. Buildkite only runs macOS 27, which isn't affected.GPUCompiler 2.22.1 expands these operations instead (JuliaGPU/GPUCompiler.jl#1086). This bumps the compat bound and adds a runtime test over edge values. On an M3 Pro with macOS 26.7, the test fails for Int16 with GPUCompiler 2.22.0 and passes with 2.22.1.