Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17252 Discussions

-O3 and --util options deprecated

Altera_Forum
Honored Contributor II
1,155 Views

Hi, 

 

In the release notes (http://www.altera.com/literature/rn/rn_aocl.pdf) for 14.1, it says the -O3 and --util <N> options have been deprecated. Why? 

 

If I try to use them, the compiler output on the command line seems to show they still work. 

 

Thanks, 

 

Smith
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
437 Views

Yes, in some cases -O3 was found not to make the right decisions. You can use it for experimental purposes. However, since there are no immediate plans to improve it, it was decided to deprecate it.

0 Kudos
Altera_Forum
Honored Contributor II
437 Views

I recommend instrumenting your kernel with macros to control things like SIMD lanes, number of compute units, loop unrolling, etc... and pass them in at compile time to implement the same type of optimizations that the -O3 flag did automatically. If you script your compile then you could do your own exploration turning various knobs to see what improves the performance in an automated way. 

 

Even when -O3 was supported I found it was easier to do my own exploration since it's hard to tell which optimizations work well and which ones do not when the compiler is turning all the knobs for you.
0 Kudos
Altera_Forum
Honored Contributor II
437 Views

Thank you guys.

0 Kudos
Reply