tapa icon indicating copy to clipboard operation
tapa copied to clipboard

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

Open lifeformg opened this issue 11 months ago • 0 comments

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?

lifeformg avatar Mar 21 '24 04:03 lifeformg