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 JGFSORBenchSizeD{
23 public static void main(String argv[]){
26 if(argv.length != 0 ) {
27 nthreads = Integer.parseInt(argv[0]);
29 System.printString("The no of threads has not been specified, defaulting to 1\n");
30 System.printString(" \n");
34 JGFInstrumentor instr = new JGFInstrumentor();
35 //JGFInstrumentor.printHeader(2,0,nthreads);
38 sor = new JGFSORBench(nthreads);
41 JGFInstrumentor.addTimer("Section2:SOR:Kernel", "Iterations",size, instr.timers);
44 JGFSORBench.JGFkernel(sor);
47 retval = sor.JGFvalidate();
50 System.printString("Validation failed\n");
54 jacobi = sor.JACOBI_NUM_ITER;
56 JGFInstrumentor.addOpsToTimer("Section2:SOR:Kernel", (double) (sor.JACOBI_NUM_ITER), instr.timers);
58 JGFInstrumentor.printTimer("Section2:SOR:Kernel", instr.timers);
60 System.printString("Finished\n");