1 /**************************************************************************
2 * * Java Grande Forum Benchmark Suite - Version 2.0 * * produced by * * Java
3 * Grande Benchmarking Project * * at * * Edinburgh Parallel Computing Centre *
4 * * email: epcc-javagrande@epcc.ed.ac.uk * * * This version copyright (c) The
5 * University of Edinburgh, 1999. * All rights reserved. * *
6 **************************************************************************/
8 public class TestRunner extends RayTracer {
16 public TestRunner(int id,
22 this.numCore = numCore;
25 // create the objects to be rendered
26 this.scene = scene; //createScene();
31 // get lights, objects etc. from scene.
34 numobjects = this.scene.getObjects();
35 /*this.image=new int[size][];
37 // get lights, objects etc. from scene.
40 numobjects = scene.getObjects();*/
44 this.image=new int[this.size][];
47 public void JGFvalidate() {
48 // long refval[] = {2676692,29827635};
49 // long refval[] = new long[2];
50 // refval[0] = 2676692;
51 // refval[1] = 29827635;
52 // long dev = checksum - refval[size];
54 // System.out.println("Validation failed");
55 // System.out.println("Pixel checksum = " + checksum);
56 // System.out.println("Reference value = " + refval[size]);
60 public void JGFtidyup() {
72 int heightPerCore=height/numCore;
73 int startidx=heightPerCore * this.id;
74 int endidx=startidx + heightPerCore;
75 Interval interval = new Interval(0, width, height, startidx, endidx, 1);
78 //System.out.println("CHECKSUM="+checksum);