ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/FJPhaserJacobi.java
(Generate patch)

Comparing jsr166/src/test/loops/FJPhaserJacobi.java (file contents):
Revision 1.1 by dl, Fri Oct 23 19:57:06 2009 UTC vs.
Revision 1.7 by dl, Sun Sep 19 12:55:37 2010 UTC

# Line 1 | Line 1
1   // Barrier version of Jacobi iteration
2  
3   import java.util.concurrent.*;
4 //import jsr166y.*;
4  
5   public class FJPhaserJacobi {
6  
# Line 25 | Line 24 | public class FJPhaserJacobi {
24          }
25          
26          ForkJoinPool fjp = new ForkJoinPool();
27 +        //        int granularity = (n * n / fjp.getParallelism()) / 2;
28          int granularity = n * n / fjp.getParallelism();
29          dimGran = (int)(Math.sqrt(granularity));
30        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines