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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/cl-scheduler.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/cl-scheduler.h

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

revision 1500, Tue Sep 13 05:25:58 2011 UTC revision 1501, Tue Sep 13 19:33:15 2011 UTC
# Line 28  Line 28 
28      int numStrands;                 // number of strands      int numStrands;                 // number of strands
29      int sId;                        // the index accumlator for the todo list or queue      int sId;                        // the index accumlator for the todo list or queue
30      int nextStrand;              // index of the next strand to retrieve from the pool      int nextStrand;              // index of the next strand to retrieve from the pool
31        int clearQueueSz;              // an indicator on whether the queue size should be cleared
32      int queueSize;                  // number of blocks on the scheduler's queue      int queueSize;                  // number of blocks on the scheduler's queue
33      int todoSize;                   // number of blocks on the scheduler's todo list      int todoSize;                   // number of blocks on the scheduler's todo list
34      int numAvailable;            // number of active strands left to process      int numAvailable;            // number of active strands left to process
# Line 80  Line 81 
81      else // if there isn't any queue items then notify the the workgroup      else // if there isn't any queue items then notify the the workgroup
82          lBlk->nActive = -1;          lBlk->nActive = -1;
83  }  }
84    //! \brief Copies the strand black from __local space to __global space
85    //! \param sched global scheduler state
86    //! \param blocks global array of strand blocks
87    //! \param lBlk pointer to global storage for the strand block
88    //! \return lBlk if there is a block to be scheduled, and 0 otherwise
89    inline void StrandBlock_Copy (__global StrandBlock_t * gBlock,
90                                      __local StrandBlock_t * lBlock)
91    {
92       gBlock->nActive = lBlock->nActive;
93       gBlock->nDead = lBlock->nDead;
94       gBlock->nStabilizing = lBlock->nStabilizing;
95       gBlock->nDying = lBlock->nDying;
96    }
97  //! \brief Get a block of strands from the Todolist scheduler pool.  //! \brief Get a block of strands from the Todolist scheduler pool.
98  //! \param sched global scheduler state  //! \param sched global scheduler state
99  //! \param blocks global array of strand blocks  //! \param blocks global array of strand blocks

Legend:
Removed from v.1500  
changed lines
  Added in v.1501

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