Repository navigation
[Only for CI] Extensions - #2475
Draft
ThrudPrimrose wants to merge 10000 commits into
Draft
ThrudPrimrose wants to merge 10000 commits into
ThrudPrimrose wants to merge 10000 commits into
Conversation
ThrudPrimrose
force-pushed
the
extended
branch
from
August 12, 2026 11:16
269d9cf to
f9c1368
Compare
added 13 commits
December 1, 2026 20:41
…nces as branches Since dd6083417b counts a copied element as an arm store, two kinds of chain turned into selects that other passes needed as branches: - a guard that no loop or map iteration changes (``if lim < N`` inside a map or loop): MoveMapInvariantIfUp / MoveLoopInvariantIfUp hoist it out whole, which beats evaluating a select per element; - an arm that reads the container it stores (``out[i] = out[i-1] + d``, else ``out[i] = out[i-1]``): LoopToScan and the conditional-reduction lifts match that recurrence in branch form. The select now refuses both. The abs-complex guard test also accepts the one-line ``const double m = abs(z);`` binding (same real-typed property). Improves: invariant guards hoist to the top again; tsvc_2_5 scan_conditional vectorizes as a scan again. Affects: SelectSameElementStores refusal rules; scalar_to_symbol test regex. Evidence: the 5 failures new in suite 928770 vs base 928747 now pass locally (move_map_invariant_if_up_test, canonicalize_branchy_polybench invariant guard, cloudsc_nssopt config chain, scalar_to_symbol abs_complex, tsvc_2_5 scan_conditional); select_same_element_stores_test 3/3. (cherry picked from commit 3559adb7d544d6bc826b88befa0e24660515b042)
…not a crash Since 3559adb7d5 leaves a clamp guard (``if b > B - 1: b = B - 1``) as a select on the symbol, the histogram's write index ``hist[b]`` reaches the injectivity proof as an IfExpr over a comparison, and sympy.diff raised "'StrictGreaterThan' object has no attribute 'diff'". A dimension whose index holds a relational now proves nothing, like any non-affine one. Improves: LoopToReduce's accumulator chains no longer crash on a clamped index. Affects: vectorization.utils.injectivity.write_subset_is_injective. Evidence: tests/codegen/cpf/test_workspace_reduction.py 2/2 (failed in suite 928801 with the AttributeError). (cherry picked from commit 23ac4485e434aad33f381bbd47b9ffda4a421dd2)
…nner map's result subtract_rowsum (for i: s = sum_j A[i, j]; b[i] -= s) split into three kernels and an [M] buffer for s: the leaving tasklet b[i] -= s reads the inner reduction, so fission has to store it to memory between kernels. BlockTileKernels keeps such a row map one kernel, a block per row with a block reduction. Fission now applies only when no work leaving the map reads what an inner map computes (the row work beside a column map). Improves: block_tile_kernels_test in_place_update passes again (one kernel, lane-0 update between barriers). Affects: FissionImperfectKernels.imperfect (offload_to_gpu, specialize_before_offload). Evidence: tests/gpu_specialization/block_tile_kernels_test.py and tests/passes/fission_imperfect_kernels_test.py, 24 passed locally (GPU numerics included). (cherry picked from commit 8ac838d5a874187ce2b1996fea864aa5c0c352c4)
…rnels is allocated once A GPU_Global transient read inside a kernel through an access node of its own was refused like a per-thread buffer, even when an access outside every map puts its allocation on the host, once per execution of the SDFG. VT's cfl_clipping, in the block loop's body SDFG, was thus cudaMallocAsync'd and freed once per block. Such an array is promoted now; one that only kernels access is still refused. Improves: one allocation in __dace_init instead of a cudaMallocAsync/cudaFreeAsync pair per block loop trip. Affects: MakeTransientsPersistent (finalize's make_transients_persistent), GPU_Global transients only. Evidence: tests/passes/persistent_transients_test.py (new reproducer fails before, 13 passed after). (cherry picked from commit 108ae678ea3077b755cb45cbb67be7d4c320b311)
…is integral HoistSymbolAssignments folds ICON's get_indices into e = (e_in if jb == endblk else nproma). The compaction mask LoopToStreamCompaction sizes e - s + 1 then failed validation as a non-integral extent: the IfExpr node, and its Eq predicate, fell through to the floating default. The predicate is no value of the expression; the arms decide. Improves: VT canonicalize (target gpu) no longer raises TypeError in LoopToStreamCompaction on 55a5fb799b. Affects: symbolic.integral_index_expression (array extent validation, range ends). Evidence: tests/symbolic/ifexpr_integrality_test.py (fails before, passes after); ipow_integrality_test passes. (cherry picked from commit f70544b6fc8886281626cafb1bb6f7fa3639fc6b)
HoistSymbolAssignments folds get_indices into conditional expressions whose arms are often the same (IfExpr(Eq(jb, endblk), 1, 1)); VT's map ranges, kernel bounds and the compaction mask extent then carried nested IfExprs whose predicate decides nothing. Improves: VT GPU map ranges and launch bounds lose the redundant conditionals. Affects: symbolic.IfExpr.eval (every IfExpr built through sympy). Evidence: tests/symbolic/ifexpr_equal_arms_test.py (fails before); test_ite_function and ifexpr_integrality pass. (cherry picked from commit e625c3455239665542508312f3f95913cac6cb4b)
…es not refuse the tile
A kernel whose body folds into a shared element outside its strided maps was refused, since every lane would
apply the update. For max, min and the logical and bitwise and/or that is harmless: applying the same (or a
lane's partial) value once per lane gives the same result. ICON's cfl clipping level loop folds its per-level
maximum CFL number into maxvcfl that way; its kernel ran one thread per level, each walking all columns.
Improves: VT's cfl_clipping level kernel runs a block per level with the columns across the lanes (was one
thread per level, 72% of GPU kernel time in the nsys profile 928731).
Affects: BlockTileKernels (accumulates_outside), finalize_for_target('gpu').
Evidence: block_tile_kernels_test.py: new clip_levels reproducer (structure fails before; numerics pass on the
laptop GPU), accumulate_outside (a sum) still refused.
(cherry picked from commit 7241d61b58ee6debbfa1ed64bbdfa85cf9132cf9)
…th is no compaction ICON's clip_count (if cfl_clipping: clip_count += 1, no append) matched as a compaction: a mask array, an exclusive scan and a Reduce library node to recover a plain count. Inside VT's cfl_clipping level map the mask is a per-level buffer the lanes would split and the Reduce a library node, so the GPU kernel could not be block-tiled. A cursor that indexes no container is a guarded sum; the reduction lifts take it. Improves: VT cfl_clipping level map: no mask/scan/Reduce; the count is a WCR sum the block reduction folds. Affects: LoopToStreamCompaction.match_loop (count-only loops now go to LiftLoopCarriedReduction). Evidence: canonicalize_loop_to_stream_compaction_test.py: new reproducer (fails before), 54 passed. (cherry picked from commit 6152fd1d8d29680cbbe817a690cedc21f3ccefe7)
ICON's levelmask(jk) = ANY(levmask(i_startblk:i_endblk, jk)) reads a run whose bounds come from data, so neither its size nor the container's names only SMALL symbols, and the in-kernel Reduce took the 256-lane block collective: a block per level folding two elements. An access is in bounds, so a run that spans only axes of SMALL extent (nblks) is no longer than they are; the node is one thread's work, and the level map is a thread per level. Improves: VT's levelmask kernel: a thread per level instead of a 256-lane block per level over nblks = 2. Affects: taskloop.small_operands (in-kernel lowering choice and the taskloop/host-level decisions that read it). Evidence: block_tile_kernels_test.py any_over_blocks reproducer (block strided before, pure after; numerics pass on the laptop GPU); host_levels, host_maps, in_kernel_block_collectives, small_gemm_selection, block_tile_kernels pass. (cherry picked from commit dfcfaf56b9e92e1993b55c8739bc9679bcf03342)
IfExpr.eval tested ``x.is_Boolean`` and then Python truthiness, so any symbolic boolean predicate (``Not(p)``, ``And``/``Or`` of comparisons) picked the true arm: ``(a if not p else b)`` parsed to ``a``. The same class OR/AND had before. HoistSymbolAssignments folds CloudSC's short-circuit flags into ``b = ((2 > 0) if (not llfall) else b)``, which became ``b = True`` and set the convective-source flag for every species. Improves: IfExpr folds only on sympy.true / sympy.false. Affects: every interstate edge, memlet or range holding a conditional expression over a symbolic boolean. Evidence: tests/symbolic/ifexpr_symbolic_predicate_test.py (fails before: parse gives True); CloudSC staged canonicalize mismatch (tendency_loc_t rel 1.2e2) bisected to fold 5-8 of HoistSymbolAssignments (ault 928864, 928906). (cherry picked from commit ad07a5565cda15b140c20a964fa0a12bd5fa333f)
…ves on the device Improves: a transient Scalar that only device code uses and that is filled only by copies of device data now becomes a GPU_Global length-1 array. Before, it stayed on the host: an async device-to-host copy, then a by-value kernel argument read before any synchronization (correct only because pageable copies block), and one needless round trip per call. Affects: ICON VT's ABI staging scalar scal_p_diag_max_vcfl_dyn_0 (no D2H before the set_max_vcfl_dyn kernel); any staged signature scalar read only on the device. Evidence: tests/offloading/device_staged_scalar_test.py (no DeviceToHost copy, fails before with CPU_Heap storage; GPU numerics of the running maximum). (cherry picked from commit 9deddeb00c9b7e3828cdbaae6dcc9f2a25cf8943)
…e, GPU codegen finds the exit by entry ArrayElimination merged every sink (or source) access node of one container in a state, whatever scope it sat in. A write that ends inside a map (vadv: MapFusionVertical keeps the intermediate dcol as an output with no reader) was folded into the top-level dcol sink, so an edge ran from an inner map exit past two scope exits. The GPU code generators then took the scope view's first sink as the map exit and asserted on the access node. Improves: merge_access_nodes groups nodes by scope; cuda.py and experimental_cuda.py take state.exit_node(entry). Affects: any state with a container written inside a map and also outside it; GPU kernels whose scope has an in-scope sink. Evidence: tests/passes/array_elimination_scope_merge_test.py (both fail before: the crossing edge, and the experimental_cuda.py:266 assert); tests/offloading/offload_corpus_test.py[vadv] passes (failed on origin/extended); npbench vadv test_gpu (RTX 4050) and test_cpu pass; offload corpus and array-elimination tests 153 passed. (cherry picked from commit af36f6819f285c2fc10e8624c657adfcd12a0d9b)
…s the identity ``for i in map: s = 0; for j: s += a[i, j]; out[i] = s`` lifted to a map body of ``s = 0`` and ``Reduce(Sum, identity=None)`` of ``a[i, 0:M]`` into ``s``. State fusion orders the seed before the Reduce through an empty edge into the Reduce's input (library nodes take no ordering edges), and InlineSDFG refuses a carrier read from a map entry beside a library node, so every such body stayed a nested SDFG. A seed equal to the operator's identity (0 for Sum, 1 for Product) now becomes Reduce.identity and the seed write goes; the body inlines. Owner ruling 12-01 (Q7): fold identity seeds; other seeds stay. Improves: row sums and other identity-seeded reductions in map bodies: no nested SDFG per row (dead_in_body_loop probe, rowsum). Affects: StructuralCleanup (new unit after state fusion); the canonical spelling of identity-seeded reductions (identity set, no seed state). Evidence: tests/canonicalize/fold_identity_seed_test.py 2/2 (reproducer + a non-identity seed stays seeded, both numerically checked). (cherry picked from commit 4da72a207361533711343de6f63e0982d7a3187f)
added 30 commits
December 3, 2026 13:41
… GPU offload
dace-fortran builds cloudsc.F90 (CLOUDSCOUTER), canonicalize(nclv=5), offload_to_gpu and
finalize_for_target("gpu"); nothing compiles or runs. Pinned: the 11 loops canonicalization leaves, by
(Fortran variable, trip count): level sweep, flux scan, the 5x5 solve (LU pivots, forward and backward
substitution), evaporation, three species scans; the block loop as a top-level map over nblocks and 52
column maps in the level sweep; after the offload 5 GPU kernels in one host state (the block kernel and
the prologue: tendency inits, pextra fill, hoisted constants), the block kernel a thread block per block
with a GPU_ThreadBlock lane per column (65 column maps striding __tid:klon:128, none over all columns),
7 loops inside it (the substitutions unroll), and 13 scalar host->device copies in the start state,
none back. New step in the dace-fortran workflow (CPU runner).
Improves: CI catches a change in CloudSC's canonical or offloaded structure.
Affects: tests/corpus/cloudsc/cloudsc_monolith_structure_test.py (new), .github/workflows/dace-fortran-ci.yml.
Evidence: passes locally in 1080 s (pytest -m long, dace-fortran pin-releases 1dcbb48; CI pins 104553cb).
Needs ae8789825d (column lanes) for the lane assertions.
… over both axes ICON VT's CFL clipping kernel over jk ran its three nproma maps sequentially on each thread: fission_kernels_over_maps split a kernel only when nothing linked its parts, and MapFission refused this body three times. Now an access node between parts is a kernel boundary when an inner map spans more than a small extent (an argmax over 16 columns stays one kernel), and: - the empty tasklets InlineSDFG leaves to relay order between parts become ordering edges, so fission does not launch them as kernels; - MapFission keeps a border transient unwidened when every access in the body already indexes it at each map parameter (cfl_clipping[jc, jk], also read after the kernel); - a copy from a one-element border transient that the memlet does not name, such as the level maximum reducing into maxvcfl through the exit, lifts as a copy tasklet. The clip count and the level maximum become one per level in device memory. Improves: OffloadToAccelerator.fission_kernels_over_maps, MapFission Affects: kernels whose inner maps hand data through transients; MapFission of bodies with per-iteration slices of a shared transient or one-element reduction copies Evidence: tests/offloading/sibling_maps_in_a_kernel_test.py reproducer fails before, passes after (GPU numerics too); VT offload: 22 -> 25 kernels, 3 -> 0 maps sequential in kernels, the fissioned parts ordered count -> clip mask -> clip; 168 passed (sibling, library_kernels_e2e, map_fission, offload_taskloop, host_maps, host_library_calls incl. gpu) and 46 passed (map fission e2e/indirect/cond, fission_imperfect_kernels, fission_parallel_sequential, small axes)
# Conflicts: # .github/workflows/dace-fortran-ci.yml
With the offload splitting a kernel whose parts hand data through a transient, the CFL clipping kernel over nlev no longer runs its three nproma maps on each thread. The test now requires no map sequential inside any kernel and names the three nlev x nproma kernels by what they write: the clip mask and count, the clipped levels and level maximum, the clipped z_w_con_c. Improves: tests/corpus/velocity/velocity_canonicalize_test.py Affects: needs "Split a kernel whose parts hand data through a transient into kernels over both axes" (cfl-fission 9def286af6) in extended Evidence: 2 passed in 127 s with that fix applied (dace-fortran 104553cb); kernels 22 -> 25, sequential maps in kernels 3 -> 0
… back Improves: a return slot (`__return`, `__return_<i>`) can be recorded as returning a non-transient argument as is, with no container of its own, so the entry point loses the slot and the whole copy into it. Affects: new serialized SDFG property `returned_arguments` (slot -> argument name, renamed with the argument); CompiledSDFG counts such slots among its return values and hands back the caller's argument array; validation counts them for slot numbering and requires the named argument to be a non-transient container and the slot to have none. Evidence: tests/canonicalize/normalize_returns_test.py (next commit) calls the compiled programs from Python after a JSON round trip.
…eturn Improves: `return b` of an argument `b` written in place no longer carries a whole copy `b -> __return`; the first canonicalize pass, NormalizeReturnedArguments, drops the slot's container and the copy and records the slot in SDFG.returned_arguments, so no copy map is ever built or fused for it. A returned expression keeps its slot. A nested SDFG's `__return*` (which survives inlining when the callee has several returns) becomes an ordinary output name, its connector renamed in the parent. Affects: new pass first in the INGEST stage; ExpandFillCopy's guard keeping a returned argument as a copy edge (8995ffc) is gone, with its test: no such copy reaches it now. Evidence: tests/canonicalize/normalize_returns_test.py: `b[:] = a*2; return b` and `return b, a + 1.0` canonicalize to one map with no slot for b, and return the right arrays from Python after a JSON round trip; a two-return callee keeps its nested SDFG with no `__return` name left.
…rray A scalar pair_join writing one complex element Z[i, 0:2] of a (n, 2) buffer was refused at validation: the output was judged by its descriptor alone. It now also accepts an output memlet that moves a pair-shaped box (edge_moves_a_tile), as the other tile ops do. Improves: TileBinop.validate for pair_join Affects: tile programs joining two scalar tiles into an element of a complex buffer Evidence: tests/library/tileops/pair_join_window_test.py fails before (NotImplementedError: a join writes a pair tile of shape (1, 2)), passes after; tile_kernels, tile_binop_pure and tile_one_element_output tests pass
…sed order tasklets back dfd0ccc split a kernel whose parts hand data through a transient as soon as one inner map was wide. That also split subtract_rowsum (b[i] -= sum(A[i, :])), which BlockTileKernels keeps as one block per row with the update on lane 0. Linked parts now split only when the kernel walks two or more wide maps one after the other (VT's clip count, mask and clip over jc). The empty *_order tasklets bypassed before MapFission decides are put back with their edges when it declines, so a kernel left whole leaves the SDFG unchanged. Improves: OffloadToAccelerator.fission_kernels_over_maps Affects: kernels with one wide reduction feeding scalar work; kernels whose fission is declined Evidence: block_tile_kernels_test::test_an_in_place_update_outside_the_inner_map_runs_on_lane_zero_between_barriers fails at dfd0ccc (bisected f586fd9..dfd0ccc), passes after; new test_an_ordering_tasklet_bypassed_for_a_declined_fission_is_put_back; block_tile_kernels, sibling_maps_in_a_kernel (VT reproducer), library_kernels_e2e: 50 passed
…t writes that element ForwardScalarToElement: a transient scalar one state seeds, reduces into (WCR map or Reduce) and then copies whole into X[s] becomes X[s] itself. RedundantArray never folded the copy: the scalar has a second access node (its seed) and a Scalar is not an Array. Improves: ICON velocity's vcflmax(jb) = maxvcfl; the CFL kernel now folds into vcflmax[jb] directly, no scalar between. Affects: canonicalize finish stage (before the last ArrayElimination). Evidence: tests/passes/canonicalize/forward_scalar_to_element_test.py (fails without the pass: scalar m copied into vmax); VT canonical form loses maxvcfl.
… is a fill before the map
HoistElementSeed: a nested map body that stores a literal into X[e(i)] in a
state it runs on every path, touches X only after that in that state, and
does not read X, gets the store as a fill map over the outer map's range,
ordered before it; the body's remaining writes are WCR, so the map's write
of X carries that operator.
Improves: ICON velocity's maxvcfl = 0 per block (after forwarding,
vcflmax[jb] = 0) is one map over the blocks, not a one-thread GPU kernel
between the cell phase's kernels.
Affects: canonicalize finish stage, after ForwardScalarToElement.
Evidence: tests/passes/canonicalize/hoist_element_seed_test.py (fails
without the pass: the seed tasklet stays in the nested body); VT gains the
map (("vcflmax",), 1).
FoldCombineIntoReduce: a Reduce with its operator's identity into a transient scalar that one tasklet combines with X[s] by the same operator (max, min, +, *) and writes back to X[s] becomes the Reduce writing X[s] with no identity, which starts the fold from X[s] (folds_onto_output). Improves: ICON velocity's max_vcfl_dyn = MAX(max_vcfl_dyn, MAXVAL(vcflmax)) is one Reduce onto p_diag_max_vcfl_dyn; the offload no longer wraps the combine in a one-thread kernel. Affects: canonicalize finish stage; a GPU Reduce without identity expands through ExpandReduceGPUAuto's pure fallback. Evidence: tests/passes/canonicalize/fold_combine_into_reduce_test.py (max and sum fail without the pass, values checked against numpy).
… host loop is_host_map kept every Sequential map holding maps on the host. Owner rule (12-03): a small map stays on the host when it launches kernels; work too small for a kernel runs where its data lives. holds_kernels asks for a map in the scope, nested SDFGs included, whose extent is not small (is_small_extent: SMALL symbols or a literal below 64); without one the nest launches nothing worth a kernel and becomes one. A host loop's own scalar work beside its kernels keeps the existing device placement. Improves: a block map around three-lane maps is one kernel over the blocks instead of a three-thread launch per block. Affects: offload host-map selection (small_maps and caller-made Sequential maps); ICON's block maps, which hold nproma/nlev maps, are unchanged. Evidence: tests/offloading/host_maps_test.py test_a_sequential_block_map_around_small_maps_only_is_the_kernel fails before; test_a_sequential_block_map_that_launches_a_kernel_stays_the_host_loop pins the task-loop case.
…ivate scatter block_private_target privatized the whole WCR target per block even when the kernel folds into one element of it, and CoarsenScatterKernels then sized the kernel's threads down by up to 64 to amortize committing that copy. A one-element target (a dot product's s[0]) still privatizes. Improves: ICON velocity's CFL kernel, which after forwarding folds into vcflmax[jb] (nblks elements), keeps one thread per level instead of 64 levels per thread. Affects: block_private_target, shared_scatter_target, CoarsenScatterKernels. Evidence: tests/gpu_specialization/block_private_scatter_test.py test_a_fold_into_one_element_of_an_array_is_no_scatter (True before); VT offload: no Sequential tile map in the CFL kernel.
The CFL maximum now reduces into vcflmax[jb] from a fill over the blocks and the global maximum is one Reduce onto max_vcfl_dyn, so the two size1_wrap_region kernels are gone. The offload test asserts every host block map only launches kernels and no size1_wrap_region remains. Improves: pins the structure the CFL fixes on extended give. Affects: CANONICAL_MAPS (maxvcfl -> vcflmax, plus the vcflmax fill map), KERNELS 22 -> 21. Evidence: velocity_canonicalize_test.py passes on the laptop (2 passed, 113 s) on extended + the five CFL fix commits; it needs them.
… main calls every case Improves: velocity_canonicalize_test pins measured on the combined batch (VT kernel fission + CFL fold): seven CFL kernels, one vcflmax seed fill, no size1_wrap_region. block_private_scatter_test runs without pytest. Affects: tests only. Evidence: velocity_canonicalize_test 2 passed (laptop, 139 s).
…n one kernel Improves: OffloadToAccelerator.fission_kernels_over_maps. A map whose range reads data (a CSR row A_row[i]:A_row[i + 1]) no longer counts as a wide map, so two dynamic row maps stay one kernel sharing one queue state; a kernel whose parts hand on a transient sized by the kernel's own parameters (a row buffer of i + 1 elements) is not split, since that buffer has no widened form. Affects: kernel fission after dfd0ccc (CI General Tests and CPF Codegen on 7e6f825). Evidence: test_private_buffers (2 GPU slab tests), lower_dynamic_thread_block_maps_test (shared queue state) fail before, pass after; 48 passed with contiguous_axis_to_threads, block_tile_kernels, sibling_maps_in_a_kernel; VT canonicalize + launch pins 6 passed (27 kernels unchanged).
Improves: ShortLoopUnroll. A constant short loop whose body holds maps unrolls when its iterations depend on each other (no LoopToMap lift), within the tasklet budget, map bodies now counted. CloudSC's 4- and 5-trip species loops around column maps (sedimentation, iorder sort, sink scaling, LU pivots, evaporation) stayed rolled; on the GPU each iteration was a launch. A parallel loop over maps still stays rolled for LoopToMap. Affects: finalize_for_target (CPU) and offload_to_gpu unroll_short_loops. Evidence: test_a_short_scan_over_maps_unrolls fails before (nothing unrolled), passes after; 129 passed (short_loop_unroll, parallelization knobs, parallelize, loop_to_reduce, local_state_fusion); CloudSC gate diagnostic (ault 930238): the five blocked loops failed only the map gate.
…ent inside its inner map Improves: OffloadToAccelerator.fission_kernels_over_maps. TSVC s126 (after ForwardScalarToElement) fills its scan input through an access node inside the fill map; MapFission widened that memlet once per scope (_scan_in_bb[i, i, j] on a 2-D buffer, invalid SDFG). Such kernels stay one kernel. Affects: kernels whose parts hand on a transient also accessed inside an inner map. Evidence: offload_to_accelerator_test::test_an_offloaded_scan_gets_its_device_lowering fails before (invalid memlet), passes after; 77 passed (offload_to_accelerator, sibling_maps, private_buffers, lower_dynamic, block_tile_kernels); VT canonicalize + launch pins 6 passed (27 kernels unchanged).
The pass folded every one-element scalar copy: SpMV's and the stencil's row sum s became y[i] with a seed kernel and atomics, losing the block-per-row reduction; CloudSC's zcorqsice, written through a nested SDFG connector, became an Array outside a Scalar connector (validation failure in finish). Now the scalar's writes must be a constant seed, WCR edges out of maps or a Reduce, and the state must hold a second top-level map beside the reduction (the body kernel fission splits, VT's clip beside its CFL maximum). Improves: CPF loop comments for SpMV (block per row again); CloudSC canonicalize staged, ab maps and GPU pipelines validate again; s118 and durbin numerics. Affects: ForwardScalarToElement (canonicalize finish stage). Evidence: tests/passes/canonicalize/forward_scalar_to_element_test.py test_a_lone_row_reduction_keeps_its_register (fails before: s folded into b); test_loop_comment_fixes_2/3, canonicalize_map_structure_test stencil_reduction_mixed, s118_duplicate_block_names_test pass.
…scatter f861f2d took every WCR write of one element as a fold into one element, so column sums s[j] (one element per iteration, j a map parameter) lost their shared-memory privatization. Improves: block-private scatter of s[j] += a[i, j] restored. Affects: block_private_target. Evidence: tests/codegen/gpu_shared_scatter_reduction_test.py test_a_small_scatter_target_is_privatized_in_shared_memory[column] (fails before); block_private_scatter_test element fold still passes.
…before it A held one-element reduction's local (double __red_..._vcflmax = ...) was emitted between the map's class comment and its pragma, so the summary saw an unlabelled loop: "unknown -- no pass classed this loop", proven: partial. Improves: the CFL clipping render is proven: all again. Affects: ExperimentalCPUCodeGen._generate_MapEntry (comment placement only). Evidence: tests/canonicalize/guarded_loop_distribution_test.py test_the_cfl_clipping_loop_distributes_into_maps_and_reductions (fails before); tests/codegen/cpf loop comment and label audit suites pass.
Improves: the frontend under test is a published release, not a main commit; dace-fortran releases first, then DaCe pins it. Affects: .github/workflows/dace-fortran-ci.yml (DACE_FORTRAN_REF 104553cb -> tag v2.0.0a4, 122e4b6, which adds the truncating Fortran integer division in symbol assignments). Evidence: v2.0.0a4 is on PyPI and GitHub; its tests passed in dace-fortran CI on 122e4b6.
Improves: the editable install reports the version it is (2.0.0a4); the v2.0.0a4 tag sits one commit before the version bump and reports 2.0.0a3. Affects: .github/workflows/dace-fortran-ci.yml (DACE_FORTRAN_REF v2.0.0a4 -> 2b0571001c). Evidence: git diff v2.0.0a4 2b0571001c touches only CHANGELOG.md, pyproject.toml and uv.lock; same code.
… reduction clause
Improves: under one OpenMP team, a worksharing loop outlined into a nested function put a scalar that function
binds by reference (double& x) into reduction(...); clang refuses it ("reduction variable must be shared"), so
s118, s343, durbin and ludcmp did not compile with clang. The scalar now keeps the atomic update.
Affects: dace/codegen/targets/cpu.py (map header, team branch); tests/codegen/omp_team_reference_reduction_test.py.
Evidence: with clang++ the 4 corpus cases, the s118 oracle test and both durbin versioning tests pass (11, failed
on ault rc1203c and rc1203d); gcc: same set plus OpenMP codegen and hoisted-region tests pass (153); the new test
fails without the change.
… column maps Improves: the pins follow ShortLoopUnroll (f82d882), which unrolls every short loop of the per-column solve inside the block kernel; each unrolled body adds its column maps to the lanes. Affects: tests/corpus/cloudsc/cloudsc_monolith_structure_test.py (KERNEL_LOOPS, LANE_COLUMN_MAPS 65 -> 78). Evidence: ault rc1203d cs_counts on the pushed tree: LOOPS, SWEEP_COLUMN_MAPS 52, KERNELS 5, COPIES_IN 13 as pinned; KERNEL_LOOPS {jk klev: 1, jk sweep: 1}, LANE_COLUMN_MAPS 78.
…about 55 The one job ran velocity, CloudSC loop classes, the QE kernels and the CloudSC monolith in sequence (setup 3 min, then 9.5 + 16 + 9 + 17 min). A matrix now runs velocity with QE, CloudSC loop classes, and CloudSC monolith side by side, each with its own setup. Improves: dace-fortran workflow wall time (about 55 to about 22 minutes). Affects: .github/workflows/dace-fortran-ci.yml (job renamed fortran-e2e). Evidence: step timings of run 47144867348 (job 144390014434).
Improves: the checks list shows "Velocity and QE", "CloudSC loop classes" and "CloudSC monolith" instead of three fortran-e2e entries told apart by a slug. Affects: .github/workflows/dace-fortran-ci.yml. Evidence: check-yaml passes.
…and the GPU structure cloudsc_fortran_kinds_test and cloudsc_monolith_structure_test each parsed cloudsc.F90 and canonicalized it with nclv = 5 (about 15 minutes each in CI), then differed only in the last step. The monolith test now renders a copy of its canonical form as CPF (every loop classed, the column solve proven sequential, UNKNOWN_BOUND) and offloads the original; every assertion of both tests is kept. The dace-fortran workflow drops its CloudSC loop classes job. Improves: dace-fortran workflow: two jobs of about 20 minutes. Affects: tests/corpus/cloudsc/cloudsc_monolith_structure_test.py (gains the kinds checks), cloudsc_fortran_kinds_test.py removed, dace-fortran-ci.yml. Evidence: step timings of run 47144867348; the assertions moved unchanged.
Improves: the vexx structural pin tracks dace-fortran 2.0.0a4 (2b0571001c), which builds 2 more maps than the earlier frontend; MAP_COUNT is now a ceiling like UNKNOWN_BOUND, so a change may lower it, never raise it. Affects: tests/corpus/qe/qe_vexx_canon_test.py only. Evidence: CI run 47144867348 failed with 138 == 136 on the new pin. Locally, on dace-fortran 9ec392b (before the new pin), both the old and the new ForwardScalarToElement give 136 maps with the same labels, so the +2 comes from the frontend bump, not from the pass.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.