This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/32789] Profiling not possible with -fopenmp
- From: "theodore dot papadopoulo at sophia dot inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 10:11:16 -0000
- Subject: [Bug libgomp/32789] Profiling not possible with -fopenmp
- References: <bug-32789-14868@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from theodore dot papadopoulo at sophia dot inria dot fr 2007-07-17 10:11 -------
And to reply to myself, it needs either to use thread local storage to hold the
counters and then to add some piece of code to fuse the values of the various
counters at the end of a thread (which might not be easy ?) or to use atomic
operations (which existence depends on the architecture, but I hope that all
multi-core processors have such instructions).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32789