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 **************************************************************************/
22 public class JGFSORBenchSizeA{
24 public static void main(String argv[]){
28 if(argv.length != 0 ) {
29 nthreads = Integer.parseInt(argv[0]);
31 System.printString("The no of threads has not been specified, defaulting to 1");
32 System.printString(" ");
36 JGFInstrumentor instr = new JGFInstrumentor();
37 JGFInstrumentor.printHeader(2,0,nthreads);
39 JGFSORBench sor = new JGFSORBench(nthreads,instr);
42 JGFInstrumentor.addTimer("Section2:SOR:Kernel", "Iterations",size, instr.timers);
45 JGFSORBench.JGFkernel(sor,instr);
48 JGFInstrumentor.addOpsToTimer("Section2:SOR:Kernel", (double) (sor.JACOBI_NUM_ITER), instr.timers);
50 JGFInstrumentor.printTimer("Section2:SOR:Kernel", instr.timers);