rapidstream-org / rapidstream-tapa

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

inline function, software simulation passed, HLS failed #136

Open linghaosong opened 1 year ago

linghaosong commented 1 year ago

If we invoke an inline function by mistake, it can be compiled and pass the software emulation, but gets failed when HLS. Can you add a check at compile time?

@syiming who found this issue.

Blaok commented 1 year ago

Interesting... so it looks like HLS does not like functions with the inline specifier being the top.

@linghaosong @syiming This won't be trivially doable during software simulation (compilation or runtime), but we could add a check in tapacc and emit a readable error before running HLS. This should be straight-forward.