[Openmp-commits] [PATCH] D13689: Add OMPT events for API locking
Tim Cramer via Openmp-commits
openmp-commits at lists.llvm.org
Tue Oct 13 09:23:22 PDT 2015
tcramer added a comment.
In http://reviews.llvm.org/D13689#265972, @jcownie wrote:
> > I notice that there aren't any patches to kmp_gsupport.c. I looked in that file and didn't see any support for locking. What will happen when using gcc with this support? Will the instrumented locking routines be called to generate the promised callbacks?
> Yes these functions will be called. The OpenMP lock functions are simply normal C functions which are called by the compiler just like any other extern function. They are not name-mangled in a compiler specific fashion, or generated in any special way, so the correct functions will be called at no extra effort.
Yes, seems to work for me. I just verified with gcc 5.2.
More information about the Openmp-commits