From 03412b9f841f140b9b7410a1890298e3ac2835db Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 20 Oct 2020 13:35:52 -0400 Subject: TACLe and DIS benchmark fixes - Use consistent approach to prevent computations from being optimized out in the DIS benchmarks - Don't print results in the DIS benchmarks - Fix a memory corruption in TACLe's "epic" benchmark reflect1() - Fix return codes for all benchmarks - Rename run_baseline.sh to run_bench.sh in preperation for this being the main benchmarking script --- dis/Matrix/ver2/matrix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dis/Matrix/ver2') diff --git a/dis/Matrix/ver2/matrix.c b/dis/Matrix/ver2/matrix.c index 5162579..9d9ac7e 100755 --- a/dis/Matrix/ver2/matrix.c +++ b/dis/Matrix/ver2/matrix.c @@ -551,8 +551,10 @@ int main(int argc, char **argv) { sum += sum + *(vectorX + k); } - fprintf(stdout, "sum = %f, actualError = %e, actualIteration = %d\n", sum, - actualError, actualIteration); + //fprintf(stdout, "sum = %f, actualError = %e, actualIteration = %d\n", sum, + // actualError, actualIteration); + volatile double _stop_optimizer = sum + actualError + actualIteration; + fprintf(stderr, "time for matrix stressmark = %f seconds.\n", difftime(endTime, beginTime)); -- cgit v1.2.2