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

SCM Repository

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

Diff of /branches/pure-cfg/src/compiler/cl-target/fragments/sched.in

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

revision 1652, Tue Nov 22 04:44:38 2011 UTC revision 1653, Tue Nov 22 15:38:26 2011 UTC
# Line 189  Line 189 
189      int qIdx;      int qIdx;
190    
191      do {      do {
192          if (id == 0) {          if (get_local_id(0) == 0) {
193             bool done;             bool done;
194             do {             do {
195              GetBlockFromTodoList(sched,todoList,blocks,bp);              GetBlockFromTodoList(sched,todoList,blocks,bp);
# Line 198  Line 198 
198                  bp->nActive =  bp->nActive - (bp->nStabilizing + bp->nDying);                  bp->nActive =  bp->nActive - (bp->nStabilizing + bp->nDying);
199                  bp->nDead += bp->nDying;                  bp->nDead += bp->nDying;
200                  if (bp->nActive == 0) {                  if (bp->nActive == 0) {
                     StrandBlock_Copy(&blocks[bp->blkIdx],bp);  
201                     //Check to see if this block can execute more strands for the                     //Check to see if this block can execute more strands for the
202                     //next iteration                     //next iteration
203                     GrabWork(sched,blockIndxs,bp);                     GrabWork(sched,blockIndxs,bp);

Legend:
Removed from v.1652  
changed lines
  Added in v.1653

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