summaryrefslogtreecommitdiffstats
path: root/dis/Matrix/ver2/matrix.c
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 13:35:52 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 13:41:49 -0400
commit03412b9f841f140b9b7410a1890298e3ac2835db (patch)
tree8417ed7fa548a571ab88f139da666787766740f3 /dis/Matrix/ver2/matrix.c
parent47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff)
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
Diffstat (limited to 'dis/Matrix/ver2/matrix.c')
-rwxr-xr-xdis/Matrix/ver2/matrix.c6
1 files changed, 4 insertions, 2 deletions
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) {
551 sum += sum + *(vectorX + k); 551 sum += sum + *(vectorX + k);
552 } 552 }
553 553
554 fprintf(stdout, "sum = %f, actualError = %e, actualIteration = %d\n", sum, 554 //fprintf(stdout, "sum = %f, actualError = %e, actualIteration = %d\n", sum,
555 actualError, actualIteration); 555 // actualError, actualIteration);
556 volatile double _stop_optimizer = sum + actualError + actualIteration;
557
556 fprintf(stderr, "time for matrix stressmark = %f seconds.\n", 558 fprintf(stderr, "time for matrix stressmark = %f seconds.\n",
557 difftime(endTime, beginTime)); 559 difftime(endTime, beginTime));
558 560