From: Henry Cook Date: Thu, 18 Dec 2014 03:12:08 +0000 (-0800) Subject: minor mt updates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f108f3a6c2c16beb1b12389cfa4ee517faa79945;p=riscv-tests.git minor mt updates --- diff --git a/benchmarks/mt-matmul/matmul_gendata.pl b/benchmarks/mt-matmul/matmul_gendata.pl index f21bb46..13763ec 100755 --- a/benchmarks/mt-matmul/matmul_gendata.pl +++ b/benchmarks/mt-matmul/matmul_gendata.pl @@ -187,12 +187,17 @@ sub main() } } + 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"; } diff --git a/benchmarks/mt-vvadd/mt-vvadd.c b/benchmarks/mt-vvadd/mt-vvadd.c index 48eae6a..2d0ca07 100644 --- a/benchmarks/mt-vvadd/mt-vvadd.c +++ b/benchmarks/mt-vvadd/mt-vvadd.c @@ -55,10 +55,10 @@ void thread_entry(int cid, int nc) 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); }