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 2000, Thu Oct 4 18:07:32 2012 UTC revision 2001, Thu Oct 4 18:07:42 2012 UTC
# Line 147  Line 147 
147      output[thid] = temp[pout* n + thid];      output[thid] = temp[pout* n + thid];
148  }  }
149    
150  // Scheduler Meta-Clearing Kenerl: Clears the queue sizes and strand id acculator  // Scheduler Meta-Clearing Kernel: Clears the queue sizes and strand id acculator
151  //! \param sched global scheduler state  //! \param sched global scheduler state
152  __kernel void Diderot_SchedUpdateKernel (__global SchedState_t *sched)  __kernel void Diderot_SchedUpdateKernel (__global SchedState_t *sched)
153  {  {
# Line 183  Line 183 
183      __local StrandBlock_t *bp,      __local StrandBlock_t *bp,
184      __local int *preStable,      __local int *preStable,
185      __local int *preDead,      __local int *preDead,
186      __local int *prefixScanTemp      __local int *prefixScanTemp)
     )  
187  {  {
188      int id = get_local_id(0);      int id = get_local_id(0);
189      int qIdx;      int qIdx;
# Line 192  Line 191 
191      do {      do {
192          if (id == 0) {          if (id == 0) {
193              GetBlockFromTodoList(sched,todoList,blocks,bp);              GetBlockFromTodoList(sched,todoList,blocks,bp);
194              // bp->nAvail < 0 if there are no more blocks to process
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;

Legend:
Removed from v.2000  
changed lines
  Added in v.2001

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