Skip to content

Update on_architecture for MetalGPU to specifically target StepRangeLen{FT, Float64, Float64}#5375

Open
glwagner wants to merge 4 commits intomainfrom
glwagner-patch-2
Open

Update on_architecture for MetalGPU to specifically target StepRangeLen{FT, Float64, Float64}#5375
glwagner wants to merge 4 commits intomainfrom
glwagner-patch-2

Conversation

@glwagner
Copy link
Copy Markdown
Member

@glwagner glwagner commented Mar 6, 2026

This PR fixes a potential bug in on_architecture whereby low precision StepRangeLen would be promoted to Float32.

@loisbaker you can incorporate this into your PR if you like.

Convert StepRangeLen with Float64 to Float32 for Metal architecture
@glwagner glwagner changed the title Update on_architecture for MetalGPU to handle Float32 Update on_architecture for MetalGPU to specifically target StepRangeLen{Float32, Float64, Float64} Mar 6, 2026
@glwagner glwagner changed the title Update on_architecture for MetalGPU to specifically target StepRangeLen{Float32, Float64, Float64} Update on_architecture for MetalGPU to specifically target StepRangeLen{Float32, Float64, Float64} Mar 6, 2026
@glwagner glwagner changed the title Update on_architecture for MetalGPU to specifically target StepRangeLen{Float32, Float64, Float64} Update on_architecture for MetalGPU to specifically target StepRangeLen{FT, Float64, Float64} Mar 6, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.49%. Comparing base (f84994e) to head (a1e2ece).
⚠️ Report is 58 commits behind head on main.

Files with missing lines Patch % Lines
ext/OceananigansMetalExt.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5375   +/-   ##
=======================================
  Coverage   73.49%   73.49%           
=======================================
  Files         398      398           
  Lines       22678    22678           
=======================================
  Hits        16667    16667           
  Misses       6011     6011           
Flag Coverage Δ
buildkite 68.82% <0.00%> (ø)
julia 68.82% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants