Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve eltype of StepRangeLen #88

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

glwagner
Copy link
Contributor

@glwagner glwagner commented Oct 30, 2024

This PR changes adapt_structure(to, ::StepRangeLen{T}) to (I hope) preserve the eltype T of the range. This prevents Float32 ranges from being spuriously promoted to Float64 on the GPU.

Closes #87

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.42%. Comparing base (5ef7c53) to head (f958482).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   93.42%   93.42%           
=======================================
  Files           6        6           
  Lines          76       76           
=======================================
  Hits           71       71           
  Misses          5        5           

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

@maleadt maleadt merged commit aabe88e into JuliaGPU:master Oct 30, 2024
21 checks passed
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.

adapt_structure for StepRangeLen does not preserve eltype
2 participants