Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22037

gcc compiling with -pg doesn't produce binary needed for gprof

$
0
0

I'm running into a little problem and require some assistance. I would like to run gprof on some OpenMP and MPI hybrid code as a part of my testing. I understand that gprof relies on a binary file which is created when you compile gcc (or mpicc) with a -pg switch.

I have tried adding this switch and my compiling succeeds (as in no errors are reported), however, the binary file is not created but the executable is created as normal. I have also tried doing this on much simpler code, which utilizes pthreads, with the same result.

Please examine the below and let me hear your thoughts.

gcc -pg --std=gnu99 -pthread -Wall -o pthreadsv0 pthreads.c

Viewing all articles
Browse latest Browse all 22037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>