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

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

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

revision 1518, Sat Oct 8 02:39:41 2011 UTC revision 1519, Sun Oct 9 18:30:16 2011 UTC
# Line 11  Line 11 
11  #ifndef _DIDEROT_OUTPUT_H_  #ifndef _DIDEROT_OUTPUT_H_
12  #define _DIDEROT_OUTPUT_H_  #define _DIDEROT_OUTPUT_H_
13    
14  //! the integer typed used to represent the strand status array.  #ifndef _DIDEROT_WORLD_H_
15  #if defined(DIDEROT_TARGET_CL)  #  include "world.h"
 typedef uint32_t StatusInt_t;  
 #else  
 typedef uint8_t StatusInt_t;  
16  #endif  #endif
17    
 typedef struct {  
     const char          *name;          //!< the program name  
     bool                isArray;        //!< is the initialization an array or collection?  
     uint32_t            numStrands;     //!< number of strands in the world  
     StatusInt_t         *status;        //!< array of strand status flags  
     void                **inState;      //!< array of strand states holding the output values  
     uint32_t            nDims;          //!< depth of iteration nesting  
     uint32_t            *size;          //!< nDims array of iteration sizes  
     size_t              outputSzb;      //!< the output size of the strands  
 } Output_Args_t;  
   
18  /*! \brief Output the final strand state to a Nrrd file.  /*! \brief Output the final strand state to a Nrrd file.
19   */   */
20  extern void Diderot_Output (Output_Args_t *);  extern void Diderot_Output (Diderot_World_t *wrld, size_t outStateSzb);
21    
22  /*! \brief Print the final strand state to a text file.  /*! \brief Print the final strand state to a text file.
23   */   */
24  extern void Diderot_Print (Output_Args_t *);  extern void Diderot_Print (Diderot_World_t *wrld);
25    
26  #endif /* !_DIDEROT_OUTPUT_H_ */  #endif /* !_DIDEROT_OUTPUT_H_ */

Legend:
Removed from v.1518  
changed lines
  Added in v.1519

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