diff options
author | Henry Cook <hcook@eecs.berkeley.edu> | 2014-12-17 19:12:08 -0800 |
---|---|---|
committer | Henry Cook <hcook@eecs.berkeley.edu> | 2014-12-17 19:12:43 -0800 |
commit | f108f3a6c2c16beb1b12389cfa4ee517faa79945 (patch) | |
tree | ff0fde098b31e4fb526abc0c1bafdaaba885bf04 /benchmarks | |
parent | 4fbf574543fe76c2ca75c9a524782449d8ff135a (diff) | |
download | riscv-tests-f108f3a6c2c16beb1b12389cfa4ee517faa79945.zip riscv-tests-f108f3a6c2c16beb1b12389cfa4ee517faa79945.tar.gz riscv-tests-f108f3a6c2c16beb1b12389cfa4ee517faa79945.tar.bz2 |
minor mt updates
Diffstat (limited to 'benchmarks')
-rwxr-xr-x | benchmarks/mt-matmul/matmul_gendata.pl | 5 | ||||
-rw-r--r-- | 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); } |