Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
9b4f42a
docs[next]: add a shallow water model example notebook
havogt Aug 5, 2026
5b7c299
docs[next]: attribute the configuration to NCAR/SWM, not to a person
havogt Aug 5, 2026
d10e2e5
fix[next]: sanitise skip-value indices before the premap gather
havogt Sep 10, 2026
57f3ae0
fix[next]: restrict the neighbor table to the field domain in reductions
havogt Sep 10, 2026
3982769
feat[next]: register jax connectivities as pytree nodes
havogt Sep 10, 2026
82d0032
test[next]: assert the inverse-image bounds shortcut bypasses the tab…
havogt Sep 10, 2026
a8bcd95
fix[next]: carry the table handle through restrict, invalidate cached…
havogt Sep 16, 2026
c118ca2
refactor[next]: forbid item assignment on connectivity fields
havogt Sep 16, 2026
9882efe
docs[next]: say why domain inference reads the table through a property
havogt Sep 16, 2026
c654d8b
Merge remote-tracking branch 'upstream/main' into jax-connectivities
havogt Sep 16, 2026
3709b85
fix[next]: keep restricted concrete connectivities concrete under a j…
havogt Sep 25, 2026
7aeff15
fix[next]: clamp value-dependent jax connectivities under a trace
havogt Sep 26, 2026
2ce6a92
Merge remote-tracking branch 'upstream/main' into jax-connectivities
havogt Oct 30, 2026
25d3cc1
refactor[next]: remove the inverse-image bounds shortcut
havogt Oct 30, 2026
db939ba
docs[next]: add ADR for connectivities under JAX tracing
havogt Oct 30, 2026
3bbca26
Merge remote-tracking branch 'upstream/main' into jax-connectivities
havogt Oct 30, 2026
f7f60f1
refactor[next]: move jax domain inference handling out of the connect…
havogt Oct 30, 2026
f7b443a
refactor[next]: make Connectivity.inverse_image private
havogt Oct 30, 2026
865944c
refactor[next]: restrict Connectivity._inverse_image to UnitRange
havogt Nov 2, 2026
7d69dd8
fix[next]: address review findings on jax connectivities
havogt Nov 2, 2026
2ee7af1
docs[next]: correct as_offset behaviour and state the skip-value grad…
havogt Nov 2, 2026
a8198a1
docs[next]: say when a closed-over as_offset field stops being concrete
havogt Nov 2, 2026
4179b9e
fix[next]: type-check the jax connectivity code with jax installed, a…
havogt Nov 6, 2026
db4bf55
fix[next]: keep the jax type ignores valid when jax is not installed
havogt Nov 6, 2026
38fb4cd
Merge remote-tracking branch 'upstream/main' into jax-connectivities
havogt Nov 6, 2026
fa98551
test[next]: drop tests of removed shortcut code and pytree internals
havogt Nov 6, 2026
3ad1c75
docs[next]: note in the ADR that the jax gather clamp may be cheaper …
havogt Nov 6, 2026
2571afb
refactor[next]: one NdArrayField for all array libraries, operations …
havogt Nov 6, 2026
bc9b062
test[next]: run the embedded field unit tests on array-api-strict
havogt Nov 6, 2026
41eb666
feat[next]: run embedded fields on torch tensors through TorchOps
havogt Nov 6, 2026
0b398aa
test[next]: ArrayOps registry and override points
havogt Nov 6, 2026
e633ae4
refactor[next]: index and assign embedded buffers only as the Array A…
havogt Nov 6, 2026
ee652c9
test[next]: run the embedded ffront tests on array-api-strict
havogt Nov 6, 2026
607e6bb
docs[next]: ADR draft for Array API embedded fields
havogt Nov 6, 2026
b3550fd
refactor[next]: TODO on NdArrayField.array_ns returning the library m…
havogt Nov 9, 2026
e283e33
docs[next]: remove the Array API embedded fields ADR draft
havogt Nov 9, 2026
becd4ee
refactor[next]: drop TorchOps, torch support moves to its own PR
havogt Nov 9, 2026
a4132e3
refactor[next]: one module per array library in embedded.array_libraries
havogt Nov 9, 2026
30dec7a
test[next]: import array-api-strict unconditionally, it is a test dep…
havogt Nov 9, 2026
64fd3fa
refactor[next]: dtype translation per array namespace in _core.ndarra…
havogt Nov 9, 2026
1528472
fix[next]: gt4py scalar type of NumPy-style dtypes independent of byt…
havogt Nov 9, 2026
d25796b
refactor[next]: import scipy's gamma once, at module level
havogt Nov 9, 2026
b90c3c9
fix[next]: skip an installed array library that fails to import, as b…
havogt Nov 9, 2026
414110f
fix[next]: reject assignment to part of a broadcast axis of an embedd…
havogt Nov 9, 2026
1aa3e71
fix[next]: to_numpy of the default ArrayOps on NumPy 2.0
havogt Nov 9, 2026
9e1c54b
docs[next]: say that every NdArrayField is a JAX pytree
havogt Nov 9, 2026
46c7193
fix[next]: accept NumPy dtypes named by C type, e.g. np.longlong
havogt Nov 9, 2026
e6d431b
refactor[next]: assign into broadcast axes as on main
havogt Nov 9, 2026
08d073b
refactor[next]: decide the tracing case of a connectivity in one place
havogt Nov 10, 2026
a3eb843
Merge jax-connectivities into #2976: connectivity tracing support on …
havogt Nov 10, 2026
1f86423
refactor[next]: keep jax tracing of connectivities in the jax module
havogt Nov 10, 2026
f67c042
refactor[next]: keep the static values of a traced connectivity table…
havogt Nov 10, 2026
38c3f37
docs[next]: describe connectivity tracing through ArrayOps in ADR 0029
havogt Nov 10, 2026
15b7897
refactor[next]: attach the static values of a connectivity to every u…
havogt Nov 10, 2026
065923a
test[next]: cover a replaced connectivity passed on to a nested jit a…
havogt Nov 10, 2026
8f9022c
refactor[next]: rename ArrayOps.elementwise to elementwise_function
havogt Nov 11, 2026
66996a3
docs[next]: say why ArrayOps.where exists
havogt Nov 11, 2026
5f148ae
refactor[next]: precise type hints in the dtype translation of ndarra…
havogt Nov 11, 2026
3a008f0
refactor[next]: call array_ops.of directly instead of an NdArrayField…
havogt Nov 11, 2026
54b4c41
fix[next]: where with two scalar branches on the default ArrayOps
havogt Nov 11, 2026
74f60d5
test[next]: buffer info tests on buffers of each array library
havogt Nov 11, 2026
9fc8816
test[next]: item assignment on fields of each array library
havogt Nov 11, 2026
e899fcc
build: re-lock uv.lock from main with a current uv
havogt Nov 11, 2026
6333ce0
fix[next]: translate NumPy scalar types named by C type to namespace …
havogt Nov 11, 2026
df9f852
fix[next]: concat_where converts fields of other libraries to the fir…
havogt Nov 11, 2026
7f48c7c
docs[next]: state the Array API revision the default ArrayOps needs
havogt Nov 11, 2026
f2d4887
refactor[next]: register ArrayOps instances by their namespace
havogt Nov 11, 2026
bfe5679
fix[next]: where with a scalar condition next to a NumPy-scalar branch
havogt Nov 11, 2026
1b2ba8f
build: require jax>=0.4.32, the first version whose array API namespa…
havogt Nov 11, 2026
77e6f98
Merge remote-tracking branch 'upstream/main' into array-api-field
havogt Nov 11, 2026
a02c6e0
Merge remote-tracking branch 'upstream/pr-2976' into jax-connectiviti…
havogt Nov 11, 2026
8f6fb40
fix[next]: reject fields of other array libraries as JAX pytrees
havogt Nov 11, 2026
e90ef3b
docs[next]: TODO on the order dependence of mixed-library operations
havogt Nov 11, 2026
00c755b
docs[next]: say why ArrayOps.operand and setitem convert, and which l…
havogt Nov 11, 2026
59d5741
build: require numpy>=2.1, the first version whose from_dlpack takes …
havogt Nov 11, 2026
488ed16
refactor[next]: default ArrayOps.setitem accepts only arrays of its o…
havogt Nov 11, 2026
2fe6c07
refactor[next]: drop the identity entry 'pow' from STANDARD_NAMES
havogt Nov 12, 2026
2f19b77
refactor[next]: one table of builtin implementations instead of a per…
havogt Nov 12, 2026
d619b2b
fix[next]: make the static slot of a connectivity keyword-only
havogt Nov 13, 2026
5897fd1
docs[next]: say why NumPy dtypes are identified by kind and size
havogt Nov 13, 2026
881a685
refactor[next]: ArrayOps as a frozen dataclass
havogt Nov 13, 2026
309c3ab
refactor[next]: canonicalize NumPy dtypes separately from taking thei…
havogt Nov 13, 2026
821c385
Merge remote-tracking branch 'upstream/pr-2976' into jax-connectiviti…
havogt Nov 13, 2026
0e0edfa
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 13, 2026
4d37585
refactor[next]: connectivity caches without arrays, clamping gather i…
havogt Nov 13, 2026
beed38f
docs[next]: ADR 0029 for the gather, the caches and the pytree rules
havogt Nov 13, 2026
e0956b6
build: require jax>=0.7.0, the first version whose indexed get takes …
havogt Nov 13, 2026
e8e2696
refactor[next]: name the library slot of a connectivity _array_ops_me…
havogt Nov 16, 2026
a5e199f
test[next]: move the jax tests of embedded fields and connectivities …
havogt Nov 16, 2026
ffd17dd
test[next]: name the jax test module after the library
havogt Nov 16, 2026
cb1dd90
refactor[next]: state the contract of the library state of a connecti…
havogt Nov 16, 2026
f00b04e
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 16, 2026
a5cafba
docs[next]: drop the link to the superseded design proposal from ADR …
havogt Nov 16, 2026
40fa394
docs[next]: state the contract of a connectivity's ArrayOps state in …
havogt Nov 16, 2026
2208679
refactor[next]: separate connectivity caches per operation, build res…
havogt Nov 17, 2026
ea7f64a
refactor[next]: move connectivity table operations from ArrayOps to p…
havogt Nov 17, 2026
34d3cf0
docs[next]: ADR 0029 describes the per-connectivity ConnectivityOps
havogt Nov 17, 2026
88fb9dc
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 18, 2026
48d366c
perf[next]: cache restricted connectivities whose ConnectivityOps all…
havogt Nov 18, 2026
c98fad3
docs[next]: address review of ADR 0029
havogt Nov 18, 2026
ec98eaa
refactor[next]: ConnectivityOps get their own registry, ArrayOps no l…
havogt Nov 18, 2026
a6b3899
refactor[next]: ConnectivityOps build on the ArrayOps of their namespace
havogt Nov 18, 2026
b6c775f
refactor[next]: register ConnectivityOps types, pass a connectivity's…
havogt Nov 18, 2026
1686649
docs[next]: ADR 0029 on how a connectivity gets its ConnectivityOps
havogt Nov 18, 2026
4cc2f10
style[next]: import the connectivity_ops and array_ops modules, alias…
havogt Nov 18, 2026
4fc5943
docs[next]: say when a connectivity is given its ConnectivityOps
havogt Nov 18, 2026
54ad9d8
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 18, 2026
6e55145
refactor[next]: drop ConnectivityOps.may_cache, rebuild restrictions …
havogt Nov 18, 2026
1a2eb49
refactor[next]: rename ConnectivityOps.hyperslice to inverse_image_box
havogt Nov 18, 2026
129b1f4
refactor[next]: static values on the connectivity instead of Connecti…
havogt Nov 19, 2026
4f8f731
docs[next]: ADR 0029 describes static values on the connectivity
havogt Nov 19, 2026
636e294
refactor[next]: keep _inverse_image_box where main has _hyperslice, w…
havogt Nov 19, 2026
1806038
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 19, 2026
e97185a
refactor[next]: closed-over connectivities are not supported under ja…
havogt Nov 19, 2026
0f9aae2
docs[next]: ADR 0029 without closed-over connectivities
havogt Nov 19, 2026
7cb5a7e
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 19, 2026
a138b14
fix[next]: unsupported traced connectivities stay unsupported across …
havogt Nov 19, 2026
3b0c8f1
docs[next]: ADR 0029 with take, unsupported connectivities never comp…
havogt Nov 19, 2026
7a50f36
refactor[next]: static values as an attribute set by the connectivity…
havogt Nov 19, 2026
d0a3619
refactor[next]: static values passed to the constructor, or a _Static…
havogt Nov 19, 2026
9262906
refactor[next]: static values as a dataclass field, StaticValues.IN_B…
havogt Nov 19, 2026
5f4dcb0
docs[next]: ADR 0029 on the static values field
havogt Nov 19, 2026
fde4552
Merge remote-tracking branch 'upstream/main' into jax-connectivities-…
havogt Nov 19, 2026
2c80075
docs[next]: drop the stale gather consequence from ADR 0029
havogt Nov 19, 2026
89cb86a
docs[next]: concise pass over ADR 0029
havogt Nov 19, 2026
b99ce77
refactor[next]: address review of ADR 0029 and the jax pytree flattening
havogt Nov 19, 2026
54fe283
style[next]: drop a comment in the connectivity unflatten
havogt Nov 19, 2026
12119e0
docs[next]: the static values of a connectivity must be those of its …
havogt Nov 19, 2026
48a75a1
test[next]: jax connectivity tests check the documented behaviour, no…
havogt Nov 19, 2026
41bc371
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 20, 2026
82012af
feat[next]: jax_jit backend running embedded programs and field opera…
havogt Nov 20, 2026
19bf2db
style[next]: lint and typing of the jax_jit backend
havogt Nov 20, 2026
1393b11
feat[next]: embedded accepts 0-d arrays as scalars, so jax_jit traces…
havogt Nov 20, 2026
b621f3c
feat[next]: jax_jit takes static_params of field operators and datacl…
havogt Nov 20, 2026
291043a
test[next]: jax_jit in the integration test matrix, scalar-dependent …
havogt Nov 20, 2026
347c98f
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 20, 2026
8eeebce
refactor[next]: EmbeddedJitBackend, the dispatch seam shared by the e…
havogt Nov 20, 2026
2a3e235
feat[next]: torch_compile backend running embedded programs and field…
havogt Nov 20, 2026
2a3a8ba
test[next]: torch_compile in the integration test matrix, the backend…
havogt Nov 20, 2026
ae02879
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 20, 2026
b269dba
refactor[next]: no import cycle between fbuiltins and embedded, array…
havogt Nov 20, 2026
2b6be0f
refactor[next]: embedded jit backends wrap the embedded entry point, …
havogt Nov 20, 2026
5c8aaef
test[next]: embedded jit backend tests through one seam, the same tra…
havogt Nov 20, 2026
17e58fe
refactor[next]: named collections as tuples into the embedded jit bac…
havogt Nov 20, 2026
9eed5d9
test[next]: embedded jit backend unit tests next to the other runners…
havogt Nov 20, 2026
2048a3d
docs[next]: ADR 0030 on the embedded jit backends
havogt Nov 20, 2026
8080cdf
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 22, 2026
6ffadaf
refactor[next]: a single dispatch hook for embedded jit backends in t…
havogt Nov 22, 2026
ee88bc9
test[next]: embedded jit tests reach the jax.jit object through __wra…
havogt Nov 22, 2026
1f46a3b
docs[next]: ADR 0030 describes the single dispatch hook
havogt Nov 22, 2026
b3f32ae
Merge branch 'pr2749' into swm-jax-jit-main
havogt Nov 23, 2026
70d736b
docs[next]: select the SWM target by backend, allocator and device, r…
havogt Nov 23, 2026
532070d
docs[next]: run the SWM time step under an explicit jax.jit or torch.…
havogt Nov 23, 2026
6dc8702
Merge remote-tracking branch 'upstream/main' into swm-jax-jit-main
havogt Nov 23, 2026
c1716be
docs[next]: select the SWM DaCe targets through gtx.dace_cpu and gtx.…
havogt Nov 23, 2026
48bf008
docs[next]: SWM introduction without the provenance paragraph
havogt Nov 23, 2026
0a0e6d8
docs[next]: SWM plot without an interpretation of the flow
havogt Nov 23, 2026
a621b92
docs[next]: SWM operators section without the announced staggered-dim…
havogt Nov 23, 2026
35d6494
docs[next]: check the SWM example against the NCAR reference by default
havogt Nov 23, 2026
988af2d
docs[next]: tighten the SWM tolerances to about three times the large…
havogt Nov 23, 2026
356bc15
docs[next]: an opt-in performance comparison of all SWM targets at th…
havogt Nov 23, 2026
5f067b5
docs[next]: SWM operators section names generic operators beside stag…
havogt Nov 23, 2026
3fac77f
docs[next]: the SWM old levels are rebound, not updated in place
havogt Nov 23, 2026
171f99e
docs[next]: SWM equations without the Coriolis term the model does no…
havogt Nov 23, 2026
63af7c2
docs[next]: SWM periodicity section without the announced concat_wher…
havogt Nov 23, 2026
87a0b16
docs[next]: pass the SWM target explicitly instead of binding it at d…
havogt Nov 23, 2026
1332651
docs[next]: say that torch.compiler.reset clears all of Dynamo's comp…
havogt Nov 23, 2026
60546c9
refactor[next]: embedded jit backends in runners.experimental, export…
havogt Nov 23, 2026
5f714df
test[next]: embedded jit backends from their new location, and their …
havogt Nov 23, 2026
6f7e602
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 23, 2026
ab54012
test[next]: the new compile-without-offset-provider tests skip the em…
havogt Nov 23, 2026
b1573cb
Merge remote-tracking branch 'upstream/main' into jax-jit
havogt Nov 23, 2026
6f0e8cb
refactor[next]: embedded/__init__ imports no submodules; the decorato…
havogt Nov 23, 2026
a4e7c27
refactor[next]: array_ops.ScalarLike is TensorLike: it admits any arr…
havogt Nov 23, 2026
9d8b354
docs[next]: no ADR for the embedded jit backends (review)
havogt Nov 24, 2026
db6bccc
refactor[next]: _has_compiled_backend, a cached_property instead of a…
havogt Nov 24, 2026
18993f0
refactor[next]: array_ops.TensorLike is NDValue (review)
havogt Nov 24, 2026
6f193e0
Merge remote-tracking branch 'origin/swm-jax-jit-main' into swm-jit-b…
havogt Nov 24, 2026
f6d6dc1
fix[next]: a backend whose allocator is an array namespace allocates …
havogt Nov 24, 2026
2aad236
docs[next]: run the SWM jit targets on the experimental jax_jit and t…
havogt Nov 24, 2026
6d54584
docs[next]: write the SWM differences as in the NumPy reference
havogt Nov 24, 2026
d236c5f
feat[next]: EmbeddedBackend runs embedded on the arrays it allocates,…
havogt Nov 24, 2026
6a8861b
test[next]: eager embedded backends: programs, field operators, alloc…
havogt Nov 24, 2026
d612e6f
Merge remote-tracking branch 'origin/jax-jit' into swm-jit-backends
havogt Nov 24, 2026
592a905
docs[next]: select the SWM backend and device instead of a Target
havogt Nov 24, 2026
8747db4
docs[next]: move the SWM example into examples/swm with a README
havogt Nov 24, 2026
957a045
fix[next]: embedded backends reject fields of another array library, …
havogt Nov 24, 2026
dd9bd46
ci: torch.compile on CPU skipped for now, 16 xdist workers for the gh…
havogt Nov 24, 2026
e18797b
test[next]: embedded backends: library check, argument binding, stati…
havogt Nov 24, 2026
ad9a467
Merge remote-tracking branch 'origin/jax-jit' into swm-jit-backends
havogt Nov 24, 2026
4ba3a85
docs[next]: SWM notes on features being worked on and on the dispatch…
havogt Nov 24, 2026
f68995e
Merge remote-tracking branch 'upstream/main' into swm-jit-backends
havogt Nov 24, 2026
d7cc88e
Merge remote-tracking branch 'upstream/main' into swm-jit-backends
havogt Nov 24, 2026
b561a5b
docs[next]: select the device of the SWM JAX backends, as for torch
havogt Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/swm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Shallow water model

The NCAR [SWM](https://github.com/NCAR/SWM) shallow water benchmark written with `gt4py.next`.
Start with the notebook; the other two files only support it.

- `swm.ipynb`: the model, a choice of backends, its validation, and an opt-in performance
comparison across all backends.
- `swm_numpy.py`: a NumPy implementation of the same scheme, which the notebook validates
against.
- `swm_reference.npz`: `u`, `v` and `p` after the full 4000-step benchmark on the 16x16 grid,
from NCAR/SWM `ref/16x16`.
Loading