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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/cl-target/cl-kernels/update_cl.in
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/cl-target/cl-kernels/update_cl.in

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

revision 1641, Fri Nov 18 12:44:32 2011 UTC revision 1642, Fri Nov 18 20:22:52 2011 UTC
# Line 6  Line 6 
6          __global SchedState_t *sched,          __global SchedState_t *sched,
7          __global StrandBlock_t *blocks,          __global StrandBlock_t *blocks,
8          __global int *blockIndxs,          __global int *blockIndxs,
9          __global int *queue, __global int *todoList,          __global int *queue,
10            __global int *todoList,
11          __local StrandBlock_t *bp@SHOULD_ADD_GLOBALS@          __local StrandBlock_t *bp@SHOULD_ADD_GLOBALS@
12          @GLOBALS@@SHOULD_ADD_DATA@          @GLOBALS@@SHOULD_ADD_DATA@
13          @GLOBAL_DATA_PTRS@)          @GLOBAL_DATA_PTRS@)
# Line 26  Line 27 
27          if (bp->nActive != -1) {          if (bp->nActive != -1) {
28              int idx = blockIndxs[bp->blkIdx*BLK_SZ+id];              int idx = blockIndxs[bp->blkIdx*BLK_SZ+id];
29              if (id < bp->nActive) {              if (id < bp->nActive) {
30                  int sts = Diderot_Update(&stateIn[idx], &stateOut[idx], diderotGlobals, diderotDataPtrs);                  int sts = Diderot_Update(&stateIn[idx], &stateOut[idx], @GLOBAL_VAR@, @DATA_VAR@);
31                  switch (sts) {                  switch (sts) {
32                    case DIDEROT_DIE:                    case DIDEROT_DIE:
33                      atom_inc (&blocks[bp->blkIdx].nDying);                      atom_inc (&blocks[bp->blkIdx].nDying);

Legend:
Removed from v.1641  
changed lines
  Added in v.1642

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