Skip to content

test[next]: mark the dace benchmark parametrizations with uses_dace - #3034

Open
havogt wants to merge 1 commit into
GridTools:mainfrom
havogt:benchmarks-uses-dace
Open

havogt wants to merge 1 commit into
GridTools:mainfrom
havogt:benchmarks-uses-dace

Conversation

@havogt

@havogt havogt commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The dace parametrizations in tests/next_tests/benchmarks/benchmark_program_call.py had no uses_dace marker. So they were selected by the internal nox sessions (-m "not uses_dace") and never by the dace ones. For example, all five [run_dace_cpu_opt] cases ran in test_next-3.12(internal, cpu, nomesh) in the macOS Daily CI.

This marks them, keeping the test ids. pytest --collect-only -m uses_dace tests/next_tests/benchmarks now selects the 5 dace cases, and -m "not uses_dace" selects the 5 gtfn cases.

The gpu cases (gtfn_gpu, run_dace_gpu) remain unmarked, so they still run in no session, as before. Marking them requires_gpu would also need the benchmarks to allocate their fields with the backend's allocator: the dace gpu backend rejects host fields.

Found while debugging #3031.

Without the marker the dace benchmarks were selected by the `not uses_dace`
(internal) nox sessions and never by the `uses_dace` (dace) ones.
@havogt

havogt commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Written by an agent on behalf of @havogt

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
✅ Merge recommendation: No concerns found
🔎 Failure modes

What: `run_dace_gpu` now carries the `uses_dace` mark, so any `dace` nox session running in an environment with cupy installed would select and execute it. The benchmarks allocate fields via `gtx.empty` without the backend allocator, and per the PR description the dace gpu backend rejects host fields, so those cases would error.
Where: tests/next_tests/benchmarks/benchmark_program_call.py:BACKEND_PARAMS
Trigger: A dace session (current or a future gpu variant) running with cupy installed, so `run_dace_gpu` is included in `DACE_BACKENDS`.
Detected by: Failures of the `[run_dace_gpu]` benchmark cases in dace CI sessions; per the PR description no session currently selects them.
Covered in this PR: No

What: The dace benchmark cases are removed from `internal` sessions (`-m "not uses_dace"`). If the `dace` nox sessions do not actually collect `tests/next_tests/benchmarks/`, these benchmarks would silently never execute in CI.
Where: tests/next_tests/benchmarks/benchmark_program_call.py:parametrized benchmark functions
Trigger: A `dace` nox session whose test paths or marker filter exclude the benchmarks directory.
Detected by: Dace CI session logs showing the five `[run_dace_cpu]` benchmark cases collected and run.
Covered in this PR: No

🏅 Score: 92
🧪 PR contains tests
🔒 No security concerns identified
🔀 No multiple PR themes
⚡ No major issues detected

⚙️ Agent run details
  • Model: openai/zai-org/GLM-5.3-Flash
  • Tokens: 7,699 in / 12,304 out / 20,003 total
  • Time cost: 89.2s
  • AI calls: 1

This branch was previously deployed

1 inactive deployment
pr-agent — cec22086 Deployed Nov 23, 2026 by havogt via pr-agent / pr-agent #182
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.

1 participant