Skip to content

Build test values from bits, not convert, and run the cuTile tests against cuTile main - #20

Merged
AntonOresten merged 3 commits into
mainfrom
bitcast-converts
Nov 7, 2026
Merged

AntonOresten merged 3 commits into
mainfrom
bitcast-converts

Conversation

@AntonOresten

@AntonOresten AntonOresten commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Removes the bit-cast convert methods from the tests, and runs the cuTile extension tests in CI again, against cuTile main.

Tests without bit-cast convert

The tests defined convert between UInt8 and their stand-in float types as a bit cast, so a UInt8 literal could stand for a bit pattern. That passed raw_bits and from_raw_bits off as the constructors' value conversion, which is what 0.3 removed from the API. convert converts values: the real Float4_E2M1FN in Microfloats turns 0x03 into 3.0, not into the bit pattern 0x3, which is 1.5.

  • Removed: the three methods in test/runtests.jl, the stand-ins' bit-cast constructors, and the two methods in test/unused_bits.jl.
  • Building values: tests build values from bits with float4, native4 or from_raw_bits, and read bits with raw_bits.
  • Cross-type tests: these now convert real values, from integers to Bool and from Bool to UInt8. This covers the constructor, Narrow(T).(x), dest .= x and T.(narr).
  • New test: NVector{Float4_E2M1FN,2}(0x0a, 0x03) is now a MethodError, as it should be for an element type that can't be converted from integers.

cuTile tests in CI

They're on again, now that Microfloats 0.2.9 supports BitPacking 0.3.

  • cuTile from main. cuTile 1.0.0 requires CUDA_Compiler_jll 0.5, which holds CUDACore at 6.3 and LLVM.jl at 9. cuTile main resolves CUDACore 6.5.1 and LLVM.jl 10.4.3, and the extension tests pass against it unchanged. Pin the next cuTile release exactly once there is one, since the codegen tests match emitted Tile IR.
  • Skipped on prerelease Julia. LLVM.jl 9 has no libLLVMExtra for 1.14, which is what failed the pre job. LLVM.jl 10 loads on 1.14.0-alpha2, but cuTile main then fails in its own precompile workload (axis order must be a tuple, got Core.BindingPartition). The tests skip prerelease Julia, as they skip 1.10, with an @info.

Tests

  • CPU: pass on Julia 1.10 and 1.12 (4777 tests) and 1.14.0-alpha2 (4880).
  • GPU: the cuTile suite passes on a GB10 with Julia 1.12, cuTile main and Microfloats 0.2.9 (4813).
  • 1.14 with cuTile requested: skips the cuTile tests, and the rest pass (4880).

🤖 Generated with Claude Code

https://claude.ai/code/session_01GqhLuuGKG92oXMxGJxVHDf

AntonOresten and others added 2 commits November 7, 2026 13:05
The tests defined `convert` between UInt8 and their stand-in float types as a
bit cast, so UInt8 literals could stand for bit patterns. `convert` converts
values, and in 0.3 bits go through `raw_bits` and `from_raw_bits`, so the
tests now build values with `float4`, `native4` or `from_raw_bits`, and read
bits back with `raw_bits`. The cross-type constructor and broadcast tests
convert real values, from integers to Bool and from Bool to UInt8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GqhLuuGKG92oXMxGJxVHDf
Microfloats 0.2.9 supports BitPacking 0.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GqhLuuGKG92oXMxGJxVHDf
@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.41%. Comparing base (8b5e13b) to head (b36b5dd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
+ Coverage   87.64%   94.41%   +6.76%     
==========================================
  Files           6        6              
  Lines         340      340              
==========================================
+ Hits          298      321      +23     
+ Misses         42       19      -23     

☔ 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.

@AntonOresten AntonOresten changed the title Build test values from bits, not convert, and run the cuTile tests again Build test values from bits, not convert, and run the cuTile tests against cuTile main Nov 7, 2026
…ease Julia

cuTile 1.0.0 requires CUDA_Compiler_jll 0.5, which holds CUDACore at 6.3 and
LLVM.jl at 9, and LLVM.jl 9 has no libLLVMExtra for Julia 1.14. cuTile main
resolves CUDACore 6.5 and LLVM.jl 10, and the extension tests pass against it
unchanged. On 1.14-alpha cuTile main loads but fails in its own precompile
workload, so the tests skip prerelease Julia, as they skip 1.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GqhLuuGKG92oXMxGJxVHDf
@AntonOresten
AntonOresten merged commit 2f2986e into main Nov 7, 2026
6 checks passed
@AntonOresten
AntonOresten deleted the bitcast-converts branch November 7, 2026 12:36
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.

1 participant