cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

Automatic loop unrolling for Intel code generation #305

Open seanlatias opened 3 years ago

seanlatias commented 3 years ago

With Xilinx HLS, inner loops are automatically unrolled if outer loops are pipelined. In HeteroCL, we follow the same idea. In other words, we only specify pipelined loops without specifying the inner loops to be unrolled. However, this does not apply to Intel tools. Thus, we should automatically mark all inner loops to be unrolled if outer loops are pipelined.