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/diderot.h
ViewVC logotype

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

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

revision 623, Tue Mar 15 17:04:53 2011 UTC revision 624, Tue Mar 15 21:23:04 2011 UTC
# Line 139  Line 139 
139                                  // (m inverse transpose)                                  // (m inverse transpose)
140  } Diderot_image3D_t;  } Diderot_image3D_t;
141    
 typedef StrandStatus_t (*strand_init_t)(void *, int, int);  
142  typedef StrandStatus_t (*update_method_t)(void *, void *);  typedef StrandStatus_t (*update_method_t)(void *, void *);
143    
144  /* hooks generated by compiler for runtime */  /* hooks generated by the compiler for the runtime */
145  typedef struct {  typedef struct {
146      char                *name;          // name of strand      char                *name;          // name of strand
147      size_t              stateSzb;       // sze of strand state      size_t              stateSzb;       // sze of strand state
     strand_init_t       init;           // initialization  
148      update_method_t     update;         // update method      update_method_t     update;         // update method
149  } Strand_t;  } Strand_t;
150    
151  extern int Diderot_NumStrands;          // the number of strands in the program  extern int Diderot_NumStrands;          // the number of strands in the program
152  extern Strand_t Diderot_Strands[];      // array of NumStrands strand descriptors  extern Strand_t *Diderot_Strands[];     // array of NumStrands strand descriptors
   
 // initial strand description  
 typedef struct {  
     bool                isArray;        // is the initialization an array or collection?  
     uint32_t            nDims;          // depth of iteration nesting  
     int32_t             *base;          // nDims array of base indices  
     uint32_t            *size;          // nDims array of iteration sizes  
 } Diderot_Initially_t;  
153    
154  typedef struct struct_world Diderot_World_t;  typedef struct struct_world Diderot_World_t;
155    
# Line 170  Line 160 
160  /* Diderot library functions */  /* Diderot library functions */
161    
162  // block allocation of an initial collection of strands  // block allocation of an initial collection of strands
163  extern Diderot_World_t *Diderot_AllocInitially (Strand_t *strand, Diderot_Initially_t *init);  extern Diderot_World_t *Diderot_AllocInitially (
164        Strand_t *strand,           // the type of strands being allocated
165        bool isArray,               // is the initialization an array or collection?
166        uint32_t nDims,             // depth of iteration nesting
167        int32_t *base,              // nDims array of base indices
168        uint32_t *size);            // nDims array of iteration sizes
169    
170  // get strand state pointers  // get strand state pointers
171  extern void *Diderot_InState (Diderot_World_t *wrld, uint32_t i);  extern void *Diderot_InState (Diderot_World_t *wrld, uint32_t i);

Legend:
Removed from v.623  
changed lines
  Added in v.624

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