if -pg flag used with icc, app segfaults (linux)

if -pg flag used with icc, app segfaults (linux)

testing icc... i found that if i add -pg to my CFLAGS, the app segfaults when i run it. if i remove the -pg, all is well again but i cannot profile my code. has anyone else observed this behavior?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


I had used "-O2/-O3 -pg" with icc and it worked with gprof (single threaded apps). Can you please let me know what are the other options you are providing to the compiler ? Also, is your application single or multithreaded ?
The best way to profile, is however, by using VTune Analyzer.


Leave a Comment

Please sign in to add a comment. Not a member? Join today