Skip to content

Add a config option for storing lineinfo into the SDFG#2321

Open
romanc wants to merge 3 commits intospcl:mainfrom
romanc:romanc/debug-info-config
Open

Add a config option for storing lineinfo into the SDFG#2321
romanc wants to merge 3 commits intospcl:mainfrom
romanc:romanc/debug-info-config

Conversation

@romanc
Copy link
Contributor

@romanc romanc commented Mar 12, 2026

When we build an SDFG, there's the option to store DebugInfo with some SDFG nodes. For example, this DebugInfo can be used to store file & line information of parsed code when building an SDFG. When using the SDFG API, the default is to inspect the python stack and extract file & line information from there. These calls to inspect can/will be expensive, especially for bigger graphs.

This PR proposes to add a configuration option, compiler.lineinfo, to drive this behavior from a single place. The defaults are kept as is, i.e. we keep inspecting the stack by default. However, the config option allows a central pace to turn DebugInfo off, which could be configured in production scenarios.

@romanc romanc changed the title WIP: make debug info configurable Add a config option for storing lineinfo into the SDFG Mar 12, 2026
@romanc romanc marked this pull request as ready for review March 12, 2026 13:54
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