- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My program have include a lot of loop with memory access. Now I use optimization that is O2 Maximize Speed. But should I use O3 Highest optimization instead. Also what else can I do adjustments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using VTune already. But where is the optimizations reports ? and how to use -Qprofile-loops option ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you use Visual Studio GUI I suppose you must add the opt-report and profile-loops options in the additional command line options, and perhaps examine the results in a text editor.
If you want the opt-report results to appear in your build log, of course you will omit the opt-report-file option, but in my opinion it will be more difficult to compare to view the effect of changing your compile options and source code.
Are you trying to get by without the user guide?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I examining user guide. I add /Qprofile-loops:all and /Qopt-report-file:$(IntDir)$(TargetName).rep in compiler command lines. I setup following way
I have a file that ParallelSearch.rep but I did not see any log for profile-loops and diagnostic file .
.diag
icl: command line warning #10333: Loop profiler cannot be used when generating parallel code. Disabling '/Qprofile-loops'
.rep
<;-1:-1;IPO UNREFERENCED VAR REMOVING;;0>
UNREF VAR REMOVAL ROUTINE-SYMTAB (....)
UNREF VAR REMOVAL ROUTINE-SYMTAB (....)
UNREF VAR REMOVAL ROUTINE-SYMTAB (....)
UNREF VAR REMOVAL ROUTINE-SYMTAB (_main):VARS(8),PACKS (8)
I did not understand anything. What needs to be analyzed to ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As the warning says 'when generating parallel code. Disabling '/Qprofile-loops'' ,since instrumentation calls inserted at a function's entry and exit points, and before and after instrumentable loops may not work well in parallel context and make it's hard to get analyzed.

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