Performance Issue in `integrate_nested_sdfg()`

Open
#2,773 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
55/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start in dace/sdfg/dealias.py, where integrate_nested_sdfg() scans every node of the nested SDFG around line 1389 even when no Views are needed. Find the slicing check that decides whether views are required and see whether the scan can run only when that check is positive. Done means the scan is skipped for nested SDFGs without slicing, outputs are unchanged, and the existing nested-SDFG tests still pass.

Written by the indexing model from the issue text.

Description

To enable backwards compatibility integrate_nested_sdfg() checks if a nested SDFG performs slicing and if so adds some Views to enable it, since the "No-View-Nested-SDFG" have removed this ability.
To enable this the function has to scan every node in the nested SDFG, which is a quite expensive operation.
Currently this scan is performed in any case even if no Views are needed.
This has some performance implication in GT4Py for some stencils.

Dominant language
Python
Stars
602
Forks
171
Avg merge
1d 16h
Merged PRs (30d)
43

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spcl/dace

All issues in spcl/dace

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.