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-update-nobsp.in
ViewVC logotype

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

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

revision 3214, Wed Jul 15 04:29:46 2015 UTC revision 3215, Wed Jul 15 05:11:47 2015 UTC
# Line 13  Line 13 
13      int myNSteps;       // number of steps executed by the current strand in this lane      int myNSteps;       // number of steps executed by the current strand in this lane
14      int myMaxNSteps;    // max number of steps executed by this lane for a single strand      int myMaxNSteps;    // max number of steps executed by this lane for a single strand
15    
     if (get_global_id(0) + get_global_id(1) == 0) {  
       // global initialization by the (0,0) thread  
         gSched->nextStrand = 0;  
     }  
     barrier (CLK_GLOBAL_MEM_FENCE);  
   
16      __global StrandStatus_t *status = gSched->status;      __global StrandStatus_t *status = gSched->status;
17      __global @STRANDTY@ *state = gSched->state;      __global @STRANDTY@ *state = gSched->state;
18      int myNStrands = gSched->nStrands;      int myNStrands = gSched->nStrands;
# Line 28  Line 22 
22  #endif  #endif
23    
24      __local int nActive;                // number of currently active lanes      __local int nActive;                // number of currently active lanes
25      __local int nIdle;                  // number of active lanes that need a strand      volatile __local int nIdle;         // number of active lanes that need a strand
26      __local int nextAvailStrand;        // next strand to schedule from locally allocated block      volatile __local int nextAvailStrand; // next strand to schedule from locally allocated block
27      __local int maxAvailStrand;         // max strand index of locally allocated block      __local int maxAvailStrand;         // max strand index of locally allocated block
28    
29    // used to compute per-scheduler stats    // used to compute per-scheduler stats
# Line 53  Line 47 
47      myIdx = nextAvailStrand + myId;      myIdx = nextAvailStrand + myId;
48      myNSteps = 0;      myNSteps = 0;
49      myMaxNSteps = 0;      myMaxNSteps = 0;
     barrier (0);  
50    
51    // make a local copy of this lane's strand state    // make a local copy of this lane's strand state
52      @STRANDTY@ myStrand;      @STRANDTY@ myStrand;

Legend:
Removed from v.3214  
changed lines
  Added in v.3215

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