From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30296 invoked by alias); 2 Jul 2007 12:04:36 -0000 Received: (qmail 30219 invoked by uid 48); 2 Jul 2007 12:04:17 -0000 Date: Mon, 02 Jul 2007 12:04:00 -0000 Message-ID: <20070702120417.30217.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: "jakub 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-07/txt/msg00120.txt.bz2 ------- Comment #2 from jakub at gcc dot gnu dot org 2007-07-02 12:04 ------- If omp_get_nested() returns .false. (it doesn't have to, e.g. try running the program with OMP_NESTED=1 in env), then it really should print 2 2 2 2 because only the outer parallel is parallelized and in the inner parallel omp_get_thread_num () must always return 0. This bug has been fixed recently though, see PR32362. *** This bug has been marked as a duplicate of 32362 *** -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32551