1 /**************************************************************************
3 * Java Grande Forum Benchmark Suite - Thread Version 1.0 *
7 * Java Grande Benchmarking Project *
11 * Edinburgh Parallel Computing Centre *
13 * email: epcc-javagrande@epcc.ed.ac.uk *
16 * This version copyright (c) The University of Edinburgh, 2001. *
17 * All rights reserved. *
19 **************************************************************************/
21 public class JGFSORBenchSizeB{
23 public static void main(String argv[]){
26 if(argv.length != 0 ) {
27 nthreads = Integer.parseInt(argv[0]);
29 System.out.println("The no of threads has not been specified, defaulting to 1");
30 System.out.println(" ");
34 JGFInstrumentor instr = new JGFInstrumentor();
35 JGFInstrumentor.printHeader(2,1,nthreads);
39 sor = global new JGFSORBench(nthreads);
43 JGFInstrumentor.addTimer("Section2:SOR:Kernel", "Iterations",size, instr.timers);
48 JGFSORBench.JGFkernel(sor);
49 System.printString("End of JGFkernel\n");
52 retval = sor.JGFvalidate();
55 System.printString("Validation failed");
60 jacobi = sor.JACOBI_NUM_ITER;
63 JGFInstrumentor.addOpsToTimer("Section2:SOR:Kernel", (double) jacobi, instr.timers);
64 JGFInstrumentor.printTimer("Section2:SOR:Kernel", instr.timers);