This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
No profiling with OpenMP?
- From: Jens Seidel <jensseidel at users dot sf dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 15 Jul 2007 00:04:15 +0200
- Subject: No profiling with OpenMP?
Hi,
I tried the latest version of gcc from the stable 4.2 branch and noticed
that gprof produces wrong data together with open -fopenmp for a C++
program.
I have only two #pragma omp parallel statements in a class and the
calling statistic of this class contructor is completly wrong (gprof
tells me this constructor is called far too often). Is using OpenMP
together with -pg -O0 -g supported?
I found bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29935
related to OpenMP and profiling but it doesn't answer my question.
Or could it just be a problem with the 4.2.1 snapshot?
Jens