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

SCM Repository

[diderot] Diff of /trunk/src/compiler/cl-target/fragments/sched.in
ViewVC logotype

Diff of /trunk/src/compiler/cl-target/fragments/sched.in

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

revision 1988, Tue Jul 31 21:50:46 2012 UTC revision 1989, Fri Aug 3 01:54:21 2012 UTC
# Line 191  Line 191 
191    
192      do {      do {
193          if (id == 0) {          if (id == 0) {
            bool done;  
            do {  
194              GetBlockFromTodoList(sched,todoList,blocks,bp);              GetBlockFromTodoList(sched,todoList,blocks,bp);
             done = true;  
195              if (bp->nActive > 0) {              if (bp->nActive > 0) {
196                  bp->nActive =  bp->nActive - (bp->nStabilizing + bp->nDying);                  bp->nActive =  bp->nActive - (bp->nStabilizing + bp->nDying);
197                  bp->nDead += bp->nDying;                  bp->nDead += bp->nDying;
                 if (bp->nActive == 0) {  
                    //Check to see if this block can execute more strands for the  
                    //next iteration  
                    GrabWork(sched,blockIndxs,bp);  
                    bp->nStabilizing = 0;  
                    bp->nDying = 0;  
                    StrandBlock_Copy(&blocks[bp->blkIdx],bp);  
                    done = false;  
                 }  
198                }                }
             } while (!done);  
199          }          }
200          barrier (CLK_LOCAL_MEM_FENCE);          barrier (CLK_LOCAL_MEM_FENCE);
201    
# Line 247  Line 234 
234                  queue[qIdx] = bp->blkIdx;                  queue[qIdx] = bp->blkIdx;
235              }              }
236          }          }
237      } while (bp->nActive > 0);      } while (bp->nActive >= 0);
238    
239  }  }

Legend:
Removed from v.1988  
changed lines
  Added in v.1989

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