10000 Enabling monitoring/probing of Vars and OutPorts of processes with Monitor Process by elvinhajizada · Pull Request #80 · lava-nc/lava · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enabling monitoring/probing of Vars and OutPorts of processes with Monitor Process #80

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

Merged
merged 16 commits into from
Nov 24, 2021

Conversation

elvinhajizada
Copy link
Collaborator

These changes enables monitoring Vars and OutPorts of given process. This is done through Monitor process (implemented here) which dynamically creates new RefPortsand InPorts to monitor Varsand OutPorts, respectively. Each probing also creates a data-stroring Var. Once run is finished, collected data is structured into data attribute of Monitor process. Stored data from specific Vars/OutPorts of a given Process can be accessed by their names in datadict.

Limitations:

  • Currently, one Monitor process can monitor only one Var or Outport of single process.
    Note: The infrastructure for multi-variable monitoring is mostly implemented and is part of this pull request, however one-to-one correspondence requirement between Process and ProcessModel in terms of LavaPyTypes and Ports, blocks usage of this infrastructure for now.

PhilippPlank and others added 13 commits November 12, 2021 14:53
…litate for accessing extra proc param in proc model
� Conflicts:
�	src/lava/magma/compiler/builder.py
�	src/lava/magma/compiler/compiler.py
�	src/lava/magma/core/model/interfaces.py
�	src/lava/magma/core/model/py/model.py
�	src/lava/magma/core/model/py/ports.py
�	src/lava/magma/core/process/ports/ports.py
�	src/lava/magma/runtime/runtime_service.py
�	tests/lava/magma/compiler/test_compiler.py
�	tests/lava/magma/core/model/test_py_model.py
�	tests/lava/magma/core/process/test_ports.py
�	tests/lava/magma/runtime/test_ref_var_ports.py
@elvinhajizada elvinhajizada added 1-feature New feature request 0-needs-review For all new issues area: proc Issues with something in lava/proc area: magma/compiler Issues with something in lava/magma/compiler labels Nov 20, 2021
@elvinhajizada elvinhajizada added this to the Release v0.2.0 milestone Nov 20, 2021
@elvinhajizada elvinhajizada self-assigned this Nov 20, 2021
@elvinhajizada elvinhajizada linked an issue Nov 20, 2021 that may be closed by this pull request
Copy link
Contributor
@PhilippPlank PhilippPlank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented on a few things to change (naming, comments, simpler code).
Please also fix the linting errors (see checks).

Overall we probably need to refactor this soon to enable probing of multiple Vars, but as a first version this should be good.

Copy link
Contributor
@mathisrichter mathisrichter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only did a superficial review in terms of coding style.
Please try to be more careful with your spelling, I found a lot of typos in docstrings.

6D4E
@mathisrichter
Copy link
Contributor

@elvinhajizada Please make sure to push your resolving changes to the PR before you mark conversations as resolved.

@elvinhajizada
Copy link
Collaborator Author

@mathisrichter I was making changes while resolving conversations to not lose track of what I have resolved

@elvinhajizada
Copy link
Collaborator Author
elvinhajizada commented Nov 24, 2021

@mathisrichter and @PhilippPlank your requested changes are addressed. Please have a look and approve if it is all right

Copy link
Contributor
@mathisrichter mathisrichter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mathisrichter mathisrichter merged commit cf50d0e into lava-nc:main Nov 24, 2021
mathisrichter pushed a commit that referenced this pull request Dec 1, 2021
* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* First test and empty src files for Monitor proc

* Tests for preliminary Monitor proc/-model; adding prom_params to facilitate for accessing extra proc param in proc model

* Preliminary Monitor proc/-model for one proc, one var/output monitoring

* Monitor proc/-model for monitoring one Var or OutPort of one proc

* Adapting Monitor tests to changes in LIF proc

* Addressing requested changes in PR#80

* Addressed change requests from PR #80

* Probing multi-dim vars, probe data convention changed, deprecation warnings for float fixed

* Fix for flake8

Co-authored-by: PhilippPlank <philipp.plank@intel.com>
Co-authored-by: PhilippPlank <32519998+PhilippPlank@users.noreply.github.com>
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* First test and empty src files for Monitor proc

* Tests for preliminary Monitor proc/-model; adding prom_params to facilitate for accessing extra proc param in proc model

* Preliminary Monitor proc/-model for one proc, one var/output monitoring

* Monitor proc/-model for monitoring one Var or OutPort of one proc

* Adapting Monitor tests to changes in LIF proc

* Addressing requested changes in PR#80

* Addressed change requests from PR lava-nc#80

Co-authored-by: PhilippPlank <philipp.plank@intel.com>
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* - Initial enablement of RefPort and VarPorts

* First test and empty src files for Monitor proc

* Tests for preliminary Monitor proc/-model; adding prom_params to facilitate for accessing extra proc param in proc model

* Preliminary Monitor proc/-model for one proc, one var/output monitoring

* Monitor proc/-model for monitoring one Var or OutPort of one proc

* Adapting Monitor tests to changes in LIF proc

* Addressing requested changes in PR#80

* Addressed change requests from PR lava-nc#80

* Probing multi-dim vars, probe data convention changed, deprecation warnings for float fixed

* Fix for flake8

Co-authored-by: PhilippPlank <philipp.plank@intel.com>
Co-authored-by: PhilippPlank <32519998+PhilippPlank@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review For all new issues 1-feature New feature request area: magma/compiler Issues with something in lava/magma/compiler area: proc Issues with something in lava/proc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monitor Process: Monitoring Vars and OutPorts of processes
3 participants
0