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

Is there a way to concatenate the output of multiple ostreams? #153

Open
lifeformg opened this issue Mar 21, 2024 · 0 comments
Open

Is there a way to concatenate the output of multiple ostreams? #153

lifeformg opened this issue Mar 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lifeformg
Copy link

For example, there are N PEs, each designed as a task, and their outputs are connected to N streams. Now I need to calculate the sum of their outputs. What is an efficient way to implement this?
My current idea:

  1. Create a new task with N istreams and 1 ostream to calculate the sum in this task. However, I am not sure if connecting too many istreams to one task will cause issues.
  2. Chain sum, each PE passes the sum of the previous pe's output and its own output to the next pe. Obviously, this will take a lot of cycles.
    Is there any smarter way to implement this?
@dotkrnl dotkrnl added the enhancement New feature or request label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants