Author: dgilmore
Date: 2011-02-21 17:44:19 -0500 (Mon, 21 Feb 2011)
New Revision: 3483

Modified:
   trunk/osprey/libopenmp/omp_runtime.c
Log:
Fixed bug 728: OpenMP runtime bug exposed when team count is 1.

Fixed logic inversion in the calculation of block_size.

Approved by Wenguang Chen.


Modified: trunk/osprey/libopenmp/omp_runtime.c
===================================================================
--- trunk/osprey/libopenmp/omp_runtime.c        2011-02-19 06:18:20 UTC (rev 
3482)
+++ trunk/osprey/libopenmp/omp_runtime.c        2011-02-21 22:44:19 UTC (rev 
3483)
@@ -119,8 +119,8 @@
   team_size = p_vthread->team_size;
   if (team_size == 1) {
     /* single thread schdule*/
-    block_size = (incr > 0) ? (*pupper - *plower - 1) :
-      (*pupper - *plower + 1);
+    block_size = (incr > 0) ? (*pupper - *plower + 1) :
+      (*pupper - *plower - 1);
     /* plower, pupper are not changed*/
     *pstride = block_size;
     //*plastiter = 1;


------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to