rapidstream-org / rapidstream-tapa

RapidStream TAPA compiles task-parallel HLS program into high-frequency FPGA accelerators.
https://tapa.rtfd.io
MIT License
155 stars 32 forks source link

Software simulation slow #131

Closed linghaosong closed 1 year ago

linghaosong commented 1 year ago

I have an interesting case where the software simulation is as slow as the cosim.

For the SerpensCG, build the host and then run

./serpenscg Callipepla/matrices/LFAT5/LFAT5.mtx 10

That is a small test case, but it may take around 10 minutes to run the software simulation.

Blaok commented 1 year ago

Not reproducible on an idle server. Can you check if the cores are busy (e.g. using htop) when you run the simulation? If the cores are busy, multithreaded simulation is known to be slow. In that case, you might want to switch to a different server, or only use 1 thread.

linghaosong commented 1 year ago

Oh, you are right. All cores were busy and after switching to another server, the simulation goes fast.