SCM Repository
Annotation of /branches/vis12/src/compiler/c-util/fragments/lib-interface-body.in
Parent Directory
|
Revision Log
Revision 2708 - (view) (download)
1 : | jhr | 1706 | |
2 : | jhr | 1700 | /***** World query operations *****/ |
3 : | |||
4 : | //! Return the total number of strands (active+stable) in the world | ||
5 : | jhr | 1717 | uint32_t @PREFIX@NumStrands (@PREFIX@World_t *wrld); |
6 : | jhr | 1700 | |
7 : | //! Return the total number of active strands | ||
8 : | jhr | 1717 | uint32_t @PREFIX@NumActive (@PREFIX@World_t *wrld); |
9 : | jhr | 1700 | |
10 : | //! Return the total number of stable strands | ||
11 : | jhr | 1717 | uint32_t @PREFIX@NumStable (@PREFIX@World_t *wrld); |
12 : | jhr | 1700 | |
13 : | jhr | 1862 | //! Return true if there are any recorded error conditions |
14 : | bool @PREFIX@AnyErrors (@PREFIX@World_t *wrld); | ||
15 : | |||
16 : | //! Return the pending error message (if any). This call clears the pending error | ||
17 : | //! state. | ||
18 : | char *@PREFIX@GetErrors (@PREFIX@World_t *wrld); | ||
19 : | |||
20 : | jhr | 1700 | /***** Program running operations *****/ |
21 : | |||
22 : | jhr | 2708 | //! Allocate the program's world |
23 : | //! \return the new world or NULL if there are any errors | ||
24 : | @PREFIX@World_t *@PREFIX@New (); | ||
25 : | jhr | 1700 | |
26 : | jhr | 2708 | //! Initialize the execution state for the world. This includes allocating processor |
27 : | //! and GPU resources for parallel execution. | ||
28 : | //! \param wrld the world-state of the Diderot program | ||
29 : | //! \return true if there are any errors | ||
30 : | bool @PREFIX@Init (@PREFIX@World_t *wrld); | ||
31 : | |||
32 : | jhr | 1718 | //! Initiaize the globals and create the initial set of strands |
33 : | //! \param wrld the world-state of the Diderot program | ||
34 : | //! \return true if there are any errors | ||
35 : | bool @PREFIX@Initially (@PREFIX@World_t *wrld); | ||
36 : | jhr | 1700 | |
37 : | //! Run the Diderot program | ||
38 : | //! \param wrld the world-state of the Diderot program | ||
39 : | //! \param maxNSteps the limit on the number of super steps; 0 means unlimited | ||
40 : | //! \return the number of steps taken. | ||
41 : | jhr | 1717 | uint32_t @PREFIX@Run (@PREFIX@World_t *wrld, uint32_t maxNSteps); |
42 : | jhr | 1700 | |
43 : | //! shutdown and deallocate the world | ||
44 : | void @PREFIX@Shutdown (@PREFIX@World_t *wrld); |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |