- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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, SmithLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you guys.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page