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

PyInPort: probe() implementation #77

Merged
merged 8 commits into from
Nov 22, 2021
Merged

PyInPort: probe() implementation #77

merged 8 commits into from
Nov 22, 2021

Conversation

gkarray
Copy link
Contributor

@gkarray gkarray commented Nov 19, 2021

Implementation of probe method for PyInPorts.

Added :

  • Implementation of probe method for PyInPorts.
  • Two simple unit tests for probe method for PyInPortVectorDense only.

@mathisrichter mathisrichter linked an issue Nov 19, 2021 that may be closed by this pull request
@awintel
Copy link
Contributor

awintel commented Nov 19, 2021

I suggest to always include a few more people than just the two minimum required number of reviewers.

src/lava/magma/core/model/py/ports.py Show resolved Hide resolved
tests/lava/magma/core/model/py/test_ports.py Outdated Show resolved Hide resolved
tests/lava/magma/core/model/py/test_ports.py Outdated Show resolved Hide resolved
tests/lava/magma/core/model/py/test_ports.py Outdated Show resolved Hide resolved
@mathisrichter mathisrichter added this to the Release v0.2.0 milestone Nov 22, 2021
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.

Looks good to me for now. At some point we might want to enable InPorts which do not expect data on every csp channel to not block (current behavior, this comes from the fact that previously each InPort had exactly one csp channel), but this is for later I guess.

@mgkwill mgkwill merged commit b9ecd83 into lava-nc:main Nov 22, 2021
@awintel
Copy link
Contributor

awintel commented Nov 22, 2021

If an InPort has multiple inputs, it expects inputs from all of them. The only way to not block on some input is to receive a flush.

monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* PyInPort probe method + unit tests.
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.

PyInPort: probe() implementation
5 participants