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

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/c-target/fragments/c-hdr-spatial-extra.in
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/fragments/c-hdr-spatial-extra.in

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

revision 2581, Thu Apr 10 12:15:52 2014 UTC revision 2582, Thu Apr 10 19:28:22 2014 UTC
# Line 12  Line 12 
12      MERGESORT_WORKER,                   // Worker is performing a merge sort task      MERGESORT_WORKER,                   // Worker is performing a merge sort task
13      MERGE_WORKER,                       // Worker is performing a merge task      MERGE_WORKER,                       // Worker is performing a merge task
14      TREE_WORKER,                        // Worker is performing a tree node constructin task      TREE_WORKER,                        // Worker is performing a tree node constructin task
15        SORT_WORKER
16  }ParSpatialWorkerType;  }ParSpatialWorkerType;
17    
18  struct spatialscheduler{  struct spatialscheduler{
# Line 33  Line 34 
34          bool isIdle;                        // represents if the worker is idle          bool isIdle;                        // represents if the worker is idle
35          bool * isDone;                        // represents if the worker completed its task          bool * isDone;                        // represents if the worker completed its task
36      uint32_t id;                        // the identifier for the worker      uint32_t id;                        // the identifier for the worker
37            int start;
38        int end;
39        int axis;
40          ParSpatialWorkerType workerType;    // the type of task the worker is performing          ParSpatialWorkerType workerType;    // the type of task the worker is performing
41          pthread_cond_t  runWait;            // a condition to make a worker wait before being assigned a task          pthread_cond_t  runWait;            // a condition to make a worker wait before being assigned a task
42          pthread_cond_t  done;               // a condition used to signal another work that the work completed its task          pthread_cond_t  done;               // a condition used to signal another work that the work completed its task
# Line 78  Line 82 
82     explicitly.*/     explicitly.*/
83  void Diderot_Spatial_SeqMerge(@PREFIX@World_t *wrld, uint32_t * indices, uint32_t * tmpIndices, int lowL, int highL, int lowR, int highR, int low, uint32_t dim);  void Diderot_Spatial_SeqMerge(@PREFIX@World_t *wrld, uint32_t * indices, uint32_t * tmpIndices, int lowL, int highL, int lowR, int highR, int low, uint32_t dim);
84    
85    void preSort(@PREFIX@World_t *wrld, SpatialScheduler_t * sched,int start, int len, int axis);
86    
87    
88  /* Swaps the values at two addresses */  /* Swaps the values at two addresses */
89  void Diderot_KDTree_SwapValues(int * a, int *b);  void Diderot_KDTree_SwapValues(int * a, int *b);
90    

Legend:
Removed from v.2581  
changed lines
  Added in v.2582

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