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 **************************************************************************/
23 public class JGFMolDynBenchSizeA {
25 public static void main(String argv[]){
27 if(argv.length != 0 ) {
28 nthreads = Integer.parseInt(argv[0]);
30 System.out.println("The no of threads has not been specified, defaulting to 1");
31 System.out.println(" ");
35 JGFInstrumentor instr = new JGFInstrumentor();
36 JGFInstrumentor.printHeader(3,0,nthreads);
38 JGFMolDynBench mold = new JGFMolDynBench(nthreads, instr);
40 JGFInstrumentor.addTimer("Section3:MolDyn:Total", "Solutions",size, instr.timers);
41 JGFInstrumentor.addTimer("Section3:MolDyn:Run", "Interactions",size, instr.timers);
43 mold.JGFsetsize(size);
45 JGFInstrumentor.startTimer("Section3:MolDyn:Total", instr.timers);
48 mold.JGFapplication();
51 JGFInstrumentor.stopTimer("Section3:MolDyn:Total", instr.timers);
53 JGFInstrumentor.addOpsToTimer("Section3:MolDyn:Run", (double) (mold.interactions), instr.timers);
54 JGFInstrumentor.addOpsToTimer("Section3:MolDyn:Total", 1, instr.timers);
56 JGFInstrumentor.printTimer("Section3:MolDyn:Run", instr.timers);
57 JGFInstrumentor.printTimer("Section3:MolDyn:Total", instr.timers);