------- 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

Reply via email to