Package org.nebulaframework.benchmark.scimark.grid

Examples of org.nebulaframework.benchmark.scimark.grid.ExecutionResult


    double calcTime = 0;
    double execTime = 0;
   
    for (Serializable result : results) {
      if (result instanceof ExecutionResult) {
        ExecutionResult exResult = (ExecutionResult) result;
        cycles += exResult.getCycles();
        calcTime += exResult.getCalculationTime();
        execTime += exResult.getExecutionTime();
      }
    }
   
    double effectiveTime = (calcTime/execTime) * overallTime;
   
 
View Full Code Here


    double calcTime = 0;
    double execTime = 0;
   
    for (Serializable result : results) {
      if (result instanceof ExecutionResult) {
        ExecutionResult exResult = (ExecutionResult) result;
        cycles += exResult.getCycles();
        calcTime += exResult.getCalculationTime();
        execTime += exResult.getExecutionTime();
      }
    }
   
    System.err.println("* MC | Cycles " + cycles);
    System.err.println("* MC | Cal Time" + calcTime);
View Full Code Here

    double calcTime = 0;
    double execTime = 0;
   
    for (Serializable result : results) {
      if (result instanceof ExecutionResult) {
        ExecutionResult exResult = (ExecutionResult) result;
        cycles += exResult.getCycles();
        calcTime += exResult.getCalculationTime();
        execTime += exResult.getExecutionTime();
      }
    }
   
    System.err.println("* LU | Cycles " + cycles);
    System.err.println("* LU | Cal Time" + calcTime);
View Full Code Here

  public static void main(String args[]) throws Exception
  {

    // run the benchmark
        ExecutionResult r = null;
    double res[] = new double[6];
    Random R = new Random(Constants.RANDOM_SEED);

    Stopwatch sw = new Stopwatch();
    sw.start();
    r = CustomKernel.measureFFT(R);
    res[1] = CalculationSupport.getFFT(r.getCycles(), r.getCalculationTime());
    sw.stop();
   
    System.out.println("FFT : " + sw.read());
    sw.reset();
   
    sw.start();
    r = CustomKernel.measureSOR(R);
    res[2] = CalculationSupport.getSOR(r.getCycles(), r.getCalculationTime());
    sw.stop();

    System.out.println("SOR : " + sw.read());
    sw.reset();

    sw.start();
    r = CustomKernel.measureMonteCarlo();
    res[3] = CalculationSupport.getMonteCarlo(r.getCycles(), r.getCalculationTime());
    sw.stop();
   
    System.out.println("Monte Carlo : " + sw.read());
    sw.reset();

    sw.start();
    r = CustomKernel.measureSparseMatmult(R);
    res[4] = CalculationSupport.getSparse(r.getCycles(), r.getCalculationTime());
    sw.stop();

    System.out.println("Sparse : " + sw.read());
    sw.reset();

    sw.start();
    r = CustomKernel.measureLU(R);
    res[5] = CalculationSupport.getLU(r.getCycles(), r.getCalculationTime());
    sw.stop();
   
    System.out.println("LU : " + sw.read());
    sw.reset();
View Full Code Here

    // Accuracy Test
    if (FFT.test(x) / N > EPS) {
      throw new Exception("Invalid Result");
    }

    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.FFT);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

    sw.start();
    SOR.execute(1.25, G, cycles);
    sw.stop();


    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.SOR);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

    sw.start();
    MonteCarlo.integrate(cycles);
    sw.stop();

    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.MONTE_CARLO);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

    sw.start();
    SparseCompRow.matmult(y, val, row, col, x, cycles);
    sw.stop();

    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.SPARSE);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

    final double EPS = 1.0e-12;
    if (normabs(b, matvec(A, x)) / N > EPS) {
      throw new Exception("Invalid Result");
    }

    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.LU);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

    // Accuracy Test
    if (FFT.test(x) / N > EPS) {
      throw new Exception("Invalid Result");
    }

    ExecutionResult result = new ExecutionResult();
    result.setType(BenchmarkType.FFT);
    result.setCalculationTime(sw.read());
    result.setCycles(cycles);

    return result;
  }
View Full Code Here

TOP

Related Classes of org.nebulaframework.benchmark.scimark.grid.ExecutionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.