bug fixes
[IRC.git] / Robust / src / Benchmarks / Prefetch / threadv1.0 / section2 / JGFCryptBenchSizeA.java
1 /**************************************************************************
2 *                                                                         *
3 *         Java Grande Forum Benchmark Suite - Thread Version 1.0          *
4 *                                                                         *
5 *                            produced by                                  *
6 *                                                                         *
7 *                  Java Grande Benchmarking Project                       *
8 *                                                                         *
9 *                                at                                       *
10 *                                                                         *
11 *                Edinburgh Parallel Computing Centre                      *
12 *                                                                         * 
13 *                email: epcc-javagrande@epcc.ed.ac.uk                     *
14 *                                                                         *
15 *                                                                         *
16 *      This version copyright (c) The University of Edinburgh, 2001.      *
17 *                         All rights reserved.                            *
18 *                                                                         *
19 **************************************************************************/
20 /**************************************************************************
21 *                       Ported for DSTM Benchmark                         *
22 **************************************************************************/
23
24
25 import crypt.*;
26 import jgfutil.*; 
27
28 public class JGFCryptBenchSizeA{ 
29
30   global JGFIntrumentor instr;
31
32   public static void main(String argv[]){
33   
34     int nthreads;
35
36     if(argv.length != 0 ) {
37       nthreads = Integer.parseInt(argv[0]);
38     } else {
39       System.printString("The no of threads has not been specified, defaulting to 1");
40       System.printString("  ");
41       nthreads = 1;
42     }
43
44       instr = new JGFInstrumentor();
45       instr.printHeader(2,0,nthreads);
46
47       JGFCryptBench cb = new JGFCryptBench(nthreads, instr); 
48       cb.JGFrun(0);
49  
50   }
51 }
52
53