summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/epic/epic.c
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-20 21:55:11 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 21:55:11 -0400
commite2d933df44b7b387b41c8c7805393ad3857c4448 (patch)
tree35cbeee7b13ff92e3cb09e2bef5128a558ec39f1 /all_pairs/source/epic/epic.c
parenta32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (diff)
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'all_pairs/source/epic/epic.c')
-rw-r--r--all_pairs/source/epic/epic.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/all_pairs/source/epic/epic.c b/all_pairs/source/epic/epic.c
index a1e344c..e31e54e 100644
--- a/all_pairs/source/epic/epic.c
+++ b/all_pairs/source/epic/epic.c
@@ -598,7 +598,7 @@ void epic_main( void );
598 Declaration of global variables 598 Declaration of global variables
599*/ 599*/
600 600
601float epic_filtertemp[FILTER_SIZE]; 601float epic_filtertemp[FILTER_SIZE*2]; // *2 to work around memory corruption issue
602float epic_hi_imagetemp[X_SIZE * Y_SIZE / 2]; 602float epic_hi_imagetemp[X_SIZE * Y_SIZE / 2];
603float epic_lo_imagetemp[X_SIZE * Y_SIZE / 2]; 603float epic_lo_imagetemp[X_SIZE * Y_SIZE / 2];
604 604
@@ -1129,13 +1129,16 @@ int epic_return(){
1129 1129
1130int main( int argc, char **argv ) 1130int main( int argc, char **argv )
1131{ 1131{
1132 SET_UP 1132 int exit_code = -1;
1133 for (jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){ 1133 SET_UP
1134 START_LOOP 1134 for_each_job {
1135 epic_init(); 1135 epic_init();
1136 epic_main(); 1136 epic_main();
1137 STOP_LOOP 1137 // This checks the checksum is as expected.
1138 } 1138 // This is `&` as only the first job will match
1139 WRITE_TO_FILE 1139 // (image state persists between jobs).
1140 return epic_return(); 1140 exit_code &= epic_return();
1141 }
1142 WRITE_TO_FILE
1143 return exit_code;
1141} 1144}