From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15639 invoked by alias); 22 Jun 2007 21:37:44 -0000 Received: (qmail 15603 invoked by uid 48); 22 Jun 2007 21:37:32 -0000 Date: Fri, 22 Jun 2007 21:37:00 -0000 Message-ID: <20070622213732.15602.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32468] number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS 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/msg02080.txt.bz2 ------- Comment #1 from dfranke at gcc dot gnu dot org 2007-06-22 21:37 ------- Toying with the example shows that the number of threads in the parallel region always equals the minimum of the number of SECTIONs or the MAX_NUM_THREADS. I.e. adding another SECTION will create two threads, having 5 sections will result in 4 threads as NT==4. This is true for both, 4.2 and latest svn (20070622). Adding Jakub as CC. -- 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 Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC build triplet|x86_64-suse-linux | GCC host triplet|x86_64-suse-linux | GCC target triplet|x86_64-suse-linux | Keywords| |openmp Known to fail| |4.2.1 4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2007-06-22 21:37:31 date| | Summary|PRESENCE OF SECTIONS W/ 1 |number of threads in a |SECTION CAUSES PARALLEL |parallel region depends on |REGION TO HAVE 1 THREAD, NOT|number of SECTIONs and |4 |MAX_THREADS http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32468