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

SCM Repository

[diderot] View of /branches/vis15/src/compiler/codegen/fragments/lib-h-body.in
ViewVC logotype

View of /branches/vis15/src/compiler/codegen/fragments/lib-h-body.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3899 - (download) (annotate)
Mon May 23 13:07:16 2016 UTC (3 years, 1 month ago) by jhr
File size: 1837 byte(s)
working on merge: code generation
/***** World query operations *****/

//! Return the total number of strands (active+stable) in the world
uint32_t @PREFIX@num_strands (@PREFIX@world_t *wrld);

//! Return the total number of active strands
uint32_t @PREFIX@num_active_strands (@PREFIX@world_t *wrld);

//! Return the total number of stable strands
uint32_t @PREFIX@num_stable_strands (@PREFIX@world_t *wrld);

//! Return true if there are any recorded error conditions
bool @PREFIX@any_errors (@PREFIX@world_t *wrld);

//! Return the pending error message (if any).  This call clears the pending error
//! state.
char *@PREFIX@get_errors (@PREFIX@world_t *wrld);

/***** Program running operations *****/

//! Allocate the program's world
//! \return the new world or NULL if there are any errors
@PREFIX@world_t *@PREFIX@new_world ();

//! Initialize the execution state for the world.  This includes allocating processor
//! and GPU resources for parallel execution.
//! \param wrld the world-state of the Diderot program
//! \return true if there are any errors
bool @PREFIX@init_world (@PREFIX@world_t *wrld);

//! Initiaize the globals and create the initial set of strands
//! \param wrld the world-state of the Diderot program
//! \return true if there are any errors
bool @PREFIX@initially (@PREFIX@world_t *wrld);

//! Run the Diderot program
//! \param wrld the world-state of the Diderot program
//! \param maxNSteps the limit on the number of super steps; 0 means unlimited
//! \return the number of steps taken.
uint32_t @PREFIX@run (@PREFIX@world_t *wrld, uint32_t maxNSteps);

//! shutdown and deallocate the world
void @PREFIX@shutdown (@PREFIX@world_t *wrld);

/***** Runtime options *****/

//! Set verbose mode
void @PREFIX@set_verbose (@PREFIX@World_t *wrld, bool mode);

//! Get verbose mode
bool @PREFIX@get_verboseerbose (@PREFIX@World_t *wrld);

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