}
}
+ print "\n#ifndef __DATASET_H";
+ print "\n#define __DATASET_H";
print "\n\#define ARRAY_SIZE ".($opts{"size"}*$opts{"size"})." \n\n";
print "\n\#define DIM_SIZE ".$opts{"size"}." \n\n";
+ print "\ntypedef double data_t;";
printArray( "input1_data", \@values1 );
printArray( "input2_data", \@values2 );
printArray( "verify_data", \@results);
+
+ print "\n#endif //__DATASET_H";
}
stats(vvadd(cid, nc, DATA_SIZE, input1_data, input2_data, results_data); barrier(nc), DATA_SIZE);
if(cid == 0) {
-//#ifdef DEBUG
+#ifdef DEBUG
printDoubleArray("out-of-place results: ", DATA_SIZE, results_data);
printDoubleArray("out-of-place verify : ", DATA_SIZE, verify_data);
-//#endif
+#endif
int res = verifyDouble(DATA_SIZE, results_data, verify_data);
if(res) exit(res);
}