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

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

Portrait de scottdudley

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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de barnali-banerjee7

Hi

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.

Regards
Barnali

Connectez-vous pour laisser un commentaire.