This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Altering OpenMP emitted code
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Amittai Aviram <amittai dot aviram at yale dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 12 Feb 2012 15:39:36 +0100
- Subject: Re: Altering OpenMP emitted code
- References: <B8864D86-8AA0-4F15-AE3C-9FFF25AC77FB@yale.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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