Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Interactive Optimization Workflow #204

Open
tbennun opened this issue Oct 24, 2022 · 0 comments
Open

Proposal: Interactive Optimization Workflow #204

tbennun opened this issue Oct 24, 2022 · 0 comments
Labels
enhancement New feature or request python-integration Issues related to Python/DaCe integration
Milestone

Comments

@tbennun
Copy link
Contributor

tbennun commented Oct 24, 2022

Working with Python and VSCode at the same time is currently not well-supported.

One of the main faults is the interaction between Python debugging/running of DaCe programs and VSCode. We previously proposed the DaCe debugger, but one can assume most people would not use it (requires switching back and forth with debug adapters). A new proposal thus emerges:

@dace.program(interactive=True)
def prog(...):
    ...

(or alternatively, with dace.interactive_optimization(): would apply it globally to any called DaCe program)

Any call would create a .dacecache/<program name>/vscode.port file, and open a small server that awaits commands from VSCode. If such a file is found (we listen to the filesystem anyway), it will override the current "should I display a new SDFG" and display it. In the meantime, dace will await one of the commands from VSCode (continue, profile, ...?) on the port written in the file, while the extension can optimize.

This will be in addition to the regenerate_sdfg, regenerate_code, and recompile arguments to @dace.program, and will override them. It implies no regeneration of SDFG after calling it.

Please feel free to amend or counter this proposal.

@phschaad phschaad added enhancement New feature or request python-integration Issues related to Python/DaCe integration labels Oct 24, 2022
@phschaad phschaad added this to the November 2022 milestone Oct 24, 2022
@phschaad phschaad removed this from the November 2022 milestone Jan 10, 2023
@phschaad phschaad added this to the Backlog milestone Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python-integration Issues related to Python/DaCe integration
Projects
None yet
Development

No branches or pull requests

2 participants