Skip to content

numba / dask defensive hardening - #1804

Draft
cmdupuis3 wants to merge 4 commits into
UXARRAY:mainfrom
cmdupuis3:cmd/h1h2
Draft

cmdupuis3 wants to merge 4 commits into
UXARRAY:mainfrom
cmdupuis3:cmd/h1h2

Conversation

@cmdupuis3

@cmdupuis3 cmdupuis3 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1805

Overview

Adds a few guards to prevent regressions during chunking refactor. These guards cover stale numba caches via inline="always", and possible regressions if using fastmath in accuracy-sensitive code regions.

These cover H1 and H2 of #1789

PR Checklist

General

  • An issue is created and linked
  • Added appropriate labels (if your uxarray repo permissions allow it)
  • Filled out Overview and Expected Usage (if applicable) sections

Testing & Benchmarking

  • There is adequate test coverage of changes from this PR (add new tests if needed)
  • If this PR could affect performance, ran ASV benchmarks and confirmed they show expected behavior (add a new benchmark if necessary)

Documentation and Examples

  • Docstrings updated with any function changes, and included in all new functions
  • User (public) functions added to docs/api.rst; internal (private) function names start with an underscore (_)

AI Disclosure

AI Usage: Claude Opus 5.5

  • I have tested and take responsibility for all AI-generated content in my PR.

cmdupuis3 and others added 2 commits October 5, 2026 13:02
Add a test that forbids fastmath anywhere code from uxarray.utils.computing
is compiled, and requires error_model="numpy" on acc_sqrt_re, _accux_gca,
_accux_constlat and every kernel they are inlined into. An inline="always"
callee is compiled with its caller's flags, so the test follows numba's
inline call chains rather than only checking the definitions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cmdupuis3 cmdupuis3 self-assigned this Oct 5, 2026
@cmdupuis3 cmdupuis3 linked an issue Oct 5, 2026 that may be closed by this pull request
@cmdupuis3 cmdupuis3 added accuracy Related to mathematical accuracy of operations, such as numerical precision or rounding errors CI Continuous Integration testing Test Cases labels Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accuracy Related to mathematical accuracy of operations, such as numerical precision or rounding errors CI Continuous Integration testing Test Cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

numba cache and fastmath regression hardening

1 participant