From f108f3a6c2c16beb1b12389cfa4ee517faa79945 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Wed, 17 Dec 2014 19:12:08 -0800 Subject: [PATCH] minor mt updates --- benchmarks/mt-matmul/matmul_gendata.pl | 5 +++++ benchmarks/mt-vvadd/mt-vvadd.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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); } -- 2.30.2