From 277799a5be5228a40bd5ff862947717086a585e7 Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Fri, 2 Oct 2026 12:05:33 +0200 Subject: [PATCH 1/4] pull dace main from repo --- pyproject.toml | 1 + uv.lock | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e131ebda0e..8c6342dacd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -433,6 +433,7 @@ url = 'https://gridtools.github.io/pypi/' # dace = {index = "gridtools"} [tool.uv.sources] atlas4py = {index = "test.pypi"} +dace = {git = "https://github.com/spcl/dace.git", branch = "main"} # -- versioningit -- [tool.versioningit] diff --git a/uv.lock b/uv.lock index ef2d5ca914..51ff51f43e 100644 --- a/uv.lock +++ b/uv.lock @@ -923,7 +923,7 @@ wheels = [ [[package]] name = "dace" version = "2.0.0a9" -source = { registry = "https://pypi.org/simple" } +source = { git = "https://github.com/spcl/dace.git?branch=main#90c3adc97b55c97157a02be4411dc36d8dbb3f7f" } dependencies = [ { name = "astunparse" }, { name = "click" }, @@ -943,7 +943,6 @@ dependencies = [ { name = "sympy" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/76/34/a6e66f329ea94167c1c0da89dfaf053b1d90836ccab7161176dd12f10f9e/dace-2.0.0a9.tar.gz", hash = "sha256:ee9cd2a40c16fb09d559556433bb4f51b71fa88760fbc04306d54552775b5c4a", size = 6572070, upload-time = "2026-09-17T09:31:23.155Z" } [[package]] name = "debugpy" @@ -1467,7 +1466,7 @@ requires-dist = [ { name = "cupy-cuda13x", marker = "extra == 'cuda13'", specifier = ">=14.0" }, { name = "cupy-rocm-7-0", marker = "extra == 'rocm7'", specifier = ">=14.0" }, { name = "cytoolz", specifier = ">=1.0.1" }, - { name = "dace", specifier = "==2.0.0a9" }, + { name = "dace", git = "https://github.com/spcl/dace.git?branch=main" }, { name = "deepdiff", specifier = ">=8.1.0" }, { name = "devtools", specifier = ">=0.6" }, { name = "filelock", specifier = ">=3.18.0" }, From c1fc7f711d626a700ca7a28c55e007eba163b72c Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Fri, 2 Oct 2026 15:08:19 +0200 Subject: [PATCH 2/4] enable test_offset_j_in_temporaries on cuda backend --- .../multi_feature_tests/test_code_generation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cartesian_tests/integration_tests/multi_feature_tests/test_code_generation.py b/tests/cartesian_tests/integration_tests/multi_feature_tests/test_code_generation.py index f16c92c18a..90ff4ee36e 100644 --- a/tests/cartesian_tests/integration_tests/multi_feature_tests/test_code_generation.py +++ b/tests/cartesian_tests/integration_tests/multi_feature_tests/test_code_generation.py @@ -11,6 +11,7 @@ import pytest from gt4py import storage as gt_storage +from gt4py._core import definitions as core_defs from gt4py.cartesian import gtscript from gt4py.cartesian.frontend import gtscript_frontend from gt4py.cartesian.gtscript import ( @@ -1819,6 +1820,7 @@ def test_set_2d_mask( pytest.mark.uses_dace, pytest.mark.requires_gpu, pytest.mark.xfail( + condition=core_defs.CUPY_DEVICE_TYPE == core_defs.DeviceType.ROCM, raises=SystemExit, reason="DaCe issue: Missing `_gbar` symbol for global sync inside nested SDFG.", ), From 47b66afaa69e23b998abdc9bce828ea50af61c82 Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Fri, 2 Oct 2026 15:48:33 +0200 Subject: [PATCH 3/4] fix[next-dace]: respect DACE_compiler_build_folder_mode env var --- .../runners/dace/workflow/common.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gt4py/next/program_processors/runners/dace/workflow/common.py b/src/gt4py/next/program_processors/runners/dace/workflow/common.py index 1bad6f8107..59dd2e6afa 100644 --- a/src/gt4py/next/program_processors/runners/dace/workflow/common.py +++ b/src/gt4py/next/program_processors/runners/dace/workflow/common.py @@ -164,9 +164,16 @@ def set_dace_config( # In debug mode use `development` otherwise use `production`. # NOTE: In case you want to run with optimizations, but would like to have the full # DaCe folder, i.e. `development` mode, then export `DACE_compiler_build_folder_mode` - # set to `development` (small case matters). + # set to `development` (small case matters). DaCe applies `DACE_*` env variables + # only when loading the config, and `Config.set()` overrides them afterwards, + # so we need to read the env variable explicitly here. dace.Config.set( - "compiler", "build_folder_mode", value=("development" if gtx_config.DEBUG else "production") + "compiler", + "build_folder_mode", + value=os.environ.get( + "DACE_compiler_build_folder_mode", + "development" if gtx_config.DEBUG else "production", + ), ) # We are not interested in storing the history of SDFG transformations. From 15ec0a42b8a89f49a77b1130bd310697e5621128 Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Sat, 3 Oct 2026 20:21:57 +0200 Subject: [PATCH 4/4] switch to pypi --- pyproject.toml | 3 +-- uv.lock | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 66e654d720..89bd2bc5a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,7 +98,7 @@ dependencies = [ 'click>=8.0.0', 'cmake>=3.22', 'cytoolz>=1.0.1', - 'dace==2.0.0a9', + 'dace==2.0.0a10', 'deepdiff>=8.1.0', 'devtools>=0.6', "filelock>=3.18.0", @@ -434,7 +434,6 @@ url = 'https://gridtools.github.io/pypi/' # dace = {index = "gridtools"} [tool.uv.sources] atlas4py = {index = "test.pypi"} -dace = {git = "https://github.com/spcl/dace.git", branch = "main"} # -- versioningit -- [tool.versioningit] diff --git a/uv.lock b/uv.lock index 6b57940307..64e30d42f3 100644 --- a/uv.lock +++ b/uv.lock @@ -922,8 +922,8 @@ wheels = [ [[package]] name = "dace" -version = "2.0.0a9" -source = { git = "https://github.com/spcl/dace.git?branch=main#90c3adc97b55c97157a02be4411dc36d8dbb3f7f" } +version = "2.0.0a10" +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "astunparse" }, { name = "click" }, @@ -943,6 +943,7 @@ dependencies = [ { name = "sympy" }, { name = "typing-extensions" }, ] +sdist = { url = "https://files.pythonhosted.org/packages/f3/29/83c0d23a228c5f5cd5f6bdae1a124fcc2dd45fba239bc2b05925b99a3451/dace-2.0.0a10.tar.gz", hash = "sha256:8cfe968729be96ac66c5fd8c0f7c85c705182d30e9a49e3418cd4aafda238c30", size = 6616842, upload-time = "2026-10-03T13:32:04.812Z" } [[package]] name = "debugpy" @@ -1468,7 +1469,7 @@ requires-dist = [ { name = "cupy-cuda13x", marker = "extra == 'cuda13'", specifier = ">=14.0" }, { name = "cupy-rocm-7-0", marker = "extra == 'rocm7'", specifier = ">=14.0" }, { name = "cytoolz", specifier = ">=1.0.1" }, - { name = "dace", git = "https://github.com/spcl/dace.git?branch=main" }, + { name = "dace", specifier = "==2.0.0a10" }, { name = "deepdiff", specifier = ">=8.1.0" }, { name = "devtools", specifier = ">=0.6" }, { name = "filelock", specifier = ">=3.18.0" },