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 **************************************************************************/
20 public class JGFLUFactBenchSizeA {
22 public static void main(String argv[]){
24 if(argv.length != 0 ) {
25 nthreads = Integer.parseInt(argv[0]);
27 System.printString("The no of threads has not been specified, defaulting to 1\n");
28 System.printString(" \n");
32 JGFInstrumentor instr = new JGFInstrumentor();
33 JGFInstrumentor.printHeader(2,0,nthreads);
36 lub = global new JGFLUFactBench(nthreads);
40 JGFInstrumentor.addTimer("Section2:LUFact:Kernel", "Mflops", size, instr.timers);
45 JGFLUFactBench.JGFkernel(lub);
48 retval = lub.JGFvalidate();
51 System.printString("Validation failed\n");
58 JGFInstrumentor.addOpsToTimer("Section2:LUFact:Kernel", ((long)ops)/1.0e06, instr.timers);
59 JGFInstrumentor.printTimer("Section2:LUFact:Kernel", instr.timers);
60 System.printString("Finished\n");