Altering OpenMP emitted code
Jakub Jelinek
jakub@redhat.com
Sun Feb 12 16:46:00 GMT 2012
On Sat, Feb 11, 2012 at 05:20:24PM -0500, Amittai Aviram wrote:
> Hi! I'm reaching the point of exhaustion in trying to understand GCC
> code, so I need help. I want to change the code that GCC emits when the
> source code has an OpenMP reduction clause.
Sounds like you want user defined reductions, which are I think planned for
OpenMP 4.0. Before that happens IMHO you just want to opencode it in the
source, using a private variable, shared one and explicit merging.
Jakub
More information about the Gcc
mailing list