From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31774 invoked by alias); 29 Jun 2007 21:28:24 -0000 Received: (qmail 31695 invoked by uid 48); 29 Jun 2007 21:28:11 -0000 Date: Fri, 29 Jun 2007 21:28:00 -0000 Message-ID: <20070629212811.31694.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32551] incorrect output obtained from nested parallelism that is serialized In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-06/txt/msg02838.txt.bz2 ------- Comment #1 from dfranke at gcc dot gnu dot org 2007-06-29 21:28 ------- Seems to be fixed in trunk: $> gfortran-svn -g -Wall -fopenmp pr32551.f90 && ./a.out omp_get_nested()= F 2 2 2 2 $> gfortran-svn -v gcc version 4.3.0 20070628 (experimental) As I am not 100% sure whether I fully understand your testcase (e.g. why expect 2 as a result, not somethinig from 2-5, depending on the thread hitting the innermost parallel-region first?), I won't close it yet. Maybe Jakub has something to say on this?! -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org, jakub at gcc dot gnu | |dot org GCC build triplet|x86_64-suse-linux | GCC host triplet|x86_64-suse-linux | GCC target triplet|x86_64-suse-linux | Keywords| |openmp Summary|INCORRECT OUTPUT OBTAINED |incorrect output obtained |FROM NESTED PARALLELISM THAT|from nested parallelism that |IS SERIALIZED |is serialized Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32551