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.out.println("The no of threads has not been specified, defaulting to 1");
28 System.out.println(" ");
32 JGFInstrumentor instr = new JGFInstrumentor();
33 JGFInstrumentor.printHeader(2,0,nthreads);
35 lub = new JGFLUFactBench(nthreads, instr);
36 //lub = new JGFLUFactBench(nthreads);
39 JGFInstrumentor.addTimer("Section2:LUFact:Kernel", "Mflops", size, instr.timers);
42 JGFLUFactBench.JGFkernel(lub,instr);
46 JGFInstrumentor.addOpsToTimer("Section2:LUFact:Kernel", ((long)ops)/1.0e06, instr.timers);
47 JGFInstrumentor.printTimer("Section2:LUFact:Kernel", instr.timers);