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

SCM Repository

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

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

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

revision 3129, Wed Mar 25 09:52:05 2015 UTC revision 3139, Fri Mar 27 14:03:38 2015 UTC
# Line 147  Line 147 
147      output[thid] = temp[pout* n + thid];      output[thid] = temp[pout* n + thid];
148  }  }
149    
 // Scheduler Meta-Clearing Kernel: Clears the queue sizes and strand id acculator  
 //! \param sched global scheduler state  
 __kernel void Diderot_SchedUpdateKernel (__global SchedState_t *sched)  
 {  
     sched->sId = 0;  
     if (sched->clearQueueSz == 1) {  
         sched->clearQueueSz = 0;  
         sched->queueSize = 0;  
     }  
     else {  
         sched->clearQueueSz = 1;  
         sched->todoSize = 0;  
     }  
 }  
   
150  // Compaction Kernel: compact strands and replicate stable state  // Compaction Kernel: compact strands and replicate stable state
151  //! \param status global strand status array  //! \param status global strand status array
152  //! \param sched global scheduler state  //! \param sched global scheduler state
# Line 172  Line 157 
157  //! \param preStable pointer to local storage for number of stable strands with lower index  //! \param preStable pointer to local storage for number of stable strands with lower index
158  //! \param preDead pointer to local storage for number of dead strands with lower index  //! \param preDead pointer to local storage for number of dead strands with lower index
159  //! \param prefixScanTemp pointer to local storage for prefix-scan algorithm  //! \param prefixScanTemp pointer to local storage for prefix-scan algorithm
160  __kernel __attribute__((reqd_work_group_size(BLK_SZ, 1, 1)))  KERNEL void Diderot_CompactionKernel (
 void Diderot_CompactionKernel (  
161      __global int *status,          // strand status array      __global int *status,          // strand status array
162      __global SchedState_t *sched,       // scheduler state      __global SchedState_t *sched,       // scheduler state
163      __global StrandBlock_t *blocks,     // array of scheduler blocks      __global StrandBlock_t *blocks,     // array of scheduler blocks

Legend:
Removed from v.3129  
changed lines
  Added in v.3139

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