Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/c-target/fragments/seq-run.in
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/fragments/seq-run.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/vis12/src/compiler/c-target/fragments/run.in revision 1826, Thu Apr 12 14:04:38 2012 UTC branches/lamont/src/compiler/c-target/fragments/seq-run.in revision 2101, Thu Dec 6 06:37:07 2012 UTC
# Line 11  Line 11 
11    
12    // iterate until all strands are stable    // iterate until all strands are stable
13      if (wrld->verboseFlg) fprintf(stderr, "run with %d strands ...\n", wrld->numStrands);      if (wrld->verboseFlg) fprintf(stderr, "run with %d strands ...\n", wrld->numStrands);
14        @BUILD_GRID@
15      uint32_t nSteps = 0, nUpdates = 0;      uint32_t nSteps = 0, nUpdates = 0;
16      uint32_t nActive = wrld->numStrands;      uint32_t nActive = wrld->numActive;
17      while ((nActive > 0) && (nSteps <= maxNSteps)) {  
18        /** Run the Initial Global Reduction Phase */
19        @PREFIX@Global_Reduction(wrld,glob,wrld->inState);
20        while ((nActive > 0) && (nSteps < maxNSteps)) {
21          nSteps++;          nSteps++;
22        // update strands        // update strands
23          bool existsStabilizing = false;          bool existsStabilizing = false;
# Line 21  Line 25 
25              if (! wrld->status[i]) {              if (! wrld->status[i]) {
26                  nUpdates++;                  nUpdates++;
27  //              StrandStatus_t sts = strand->update(glob, wrld->inState[i], wrld->outState[i]);  //              StrandStatus_t sts = strand->update(glob, wrld->inState[i], wrld->outState[i]);
28                  StrandStatus_t sts = @STRAND@_Update(glob, wrld->inState[i], wrld->outState[i]);                  StrandStatus_t sts = @STRAND@_Update(glob, wrld->inState[i], wrld->outState[i],wrld->inState);
29                  switch (sts) {                  switch (sts) {
30                    case DIDEROT_STABILIZE:                    case DIDEROT_STABILIZE:
31                      existsStabilizing = true;                      existsStabilizing = true;
# Line 55  Line 59 
59          @STRANDTY@ **tmp = wrld->inState;          @STRANDTY@ **tmp = wrld->inState;
60          wrld->inState = wrld->outState;          wrld->inState = wrld->outState;
61          wrld->outState = tmp;          wrld->outState = tmp;
62          /** Run the Global Reduction Phase */
63          @PREFIX@Global_Reduction(wrld,glob,wrld->inState);
64      }      }
65        wrld->numActive = nActive;
66    
67      return nSteps;      return nSteps;
68    

Legend:
Removed from v.1826  
changed lines
  Added in v.2101

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0