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

SCM Repository

[diderot] Annotation of /branches/pure-cfg/src/include/Diderot/output.h
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1518 - (view) (download) (as text)

1 : jhr 1481 /*! \file output.h
2 :     *
3 :     * \author Nick Seltzer
4 :     */
5 :    
6 :     /*
7 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     * All rights reserved.
9 :     */
10 :    
11 : nseltzer 1479 #ifndef _DIDEROT_OUTPUT_H_
12 :     #define _DIDEROT_OUTPUT_H_
13 :    
14 : jhr 1518 //! the integer typed used to represent the strand status array.
15 :     #if defined(DIDEROT_TARGET_CL)
16 :     typedef uint32_t StatusInt_t;
17 :     #else
18 :     typedef uint8_t StatusInt_t;
19 :     #endif
20 :    
21 : jhr 1481 typedef struct {
22 : nseltzer 1479 const char *name; //!< the program name
23 :     bool isArray; //!< is the initialization an array or collection?
24 :     uint32_t numStrands; //!< number of strands in the world
25 : jhr 1518 StatusInt_t *status; //!< array of strand status flags
26 :     void **inState; //!< array of strand states holding the output values
27 : nseltzer 1479 uint32_t nDims; //!< depth of iteration nesting
28 :     uint32_t *size; //!< nDims array of iteration sizes
29 : lamonts 1513 size_t outputSzb; //!< the output size of the strands
30 : jhr 1481 } Output_Args_t;
31 : nseltzer 1479
32 : jhr 1481 /*! \brief Output the final strand state to a Nrrd file.
33 :     */
34 :     extern void Diderot_Output (Output_Args_t *);
35 : nseltzer 1479
36 : jhr 1481 /*! \brief Print the final strand state to a text file.
37 :     */
38 :     extern void Diderot_Print (Output_Args_t *);
39 : nseltzer 1479
40 :     #endif /* !_DIDEROT_OUTPUT_H_ */

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