-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for software pipelining in pragmas. #126
Comments
Hi @aidansander, |
Sure thing. lut_based_ops.h and lut_based_ops.cpp (which holds the LUT values) are both included from here. I'm running the kernel using llvm-lit on some tests. The manually pipelined and loop pragma tests have the steps I used to run and measure the cycle count. |
Thanks! There are a few things we are still lacking though to get this software pipelined:
With these tweaks, I could get a SWP loop with 23 cycles. It should be possible to further improve on that. |
Update: 1. & 2. have been resolved. |
I'm compiling a simple kernel using peano. Manually software pipelining the attached kernel (dut_pipelined.cc) yields considerable speedup compared to using pipelining pragmas (dut_pragma.cc). Without manual pipelining, the produced assembly does not pipeline and the kernel runs in ~1800 cycles. With manual pipelining, the kernel runs in ~1000 cycles. The
clang loop min_iteration_count
andmax_iteration_count
pragmas have no effect on the produced assembly.dut_pragma.cc
dut_pipelined.cc
The text was updated successfully, but these errors were encountered: