Go to the source code of this file.
Define Documentation
#define PFUNC_GEN_ALL_TYPES_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_ATTR_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_ATTR_GET_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_ATTR_INITCLEAR_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_attr_init (pfunc_##sched##_attr_t*); \
int pfunc_##sched##_attr_clear (pfunc_##sched##_attr_t*); \
#define PFUNC_GEN_ATTR_SET_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_C_TYPES |
( |
|
sched | ) |
|
Value:struct pfunc_##sched##_dummy_attr_t; \
typedef struct pfunc_##sched##_dummy_attr_t* pfunc_##sched##_attr_t; \
struct pfunc_##sched##_dummy_task_t; \
typedef struct pfunc_##sched##_dummy_task_t* pfunc_##sched##_task_t; \
struct pfunc_##sched##_dummy_taskmgr_t; \
typedef struct pfunc_##sched##_dummy_taskmgr_t* pfunc_##sched##_taskmgr_t; \
struct pfunc_##sched##_dummy_group_t; \
typedef struct pfunc_##sched##_dummy_group_t* pfunc_##sched##_group_t; \
#define PFUNC_GEN_GLOBAL_RANK_AND_SIZE_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_thread_id_gbl (unsigned int*); \
int pfunc_##sched##_group_rank_gbl (unsigned int*); \
int pfunc_##sched##_group_size_gbl (unsigned int*); \
int pfunc_##sched##_barrier_gbl ();
#define PFUNC_GEN_GLOBAL_RUN_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_spawn_c_gbl (pfunc_##sched##_task_t, \
pfunc_##sched##_attr_t, \
pfunc_##sched##_group_t, \
pfunc_c_work_func_t, \
void*); \
int pfunc_##sched##_spawn_cxx_gbl (pfunc_##sched##_task_t, \
pfunc_##sched##_attr_t, \
pfunc_##sched##_group_t, \
pfunc_##sched##_work_t);
#define PFUNC_GEN_GLOBAL_TASKMGR_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_GLOBAL_TASKMGR_INIT_CLEAR |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_init (pfunc_##sched##_taskmgr_t*); \
int pfunc_##sched##_clear ();
#define PFUNC_GEN_GLOBAL_TESTS_AND_WAITS_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_wait_gbl (pfunc_##sched##_task_t); \
int pfunc_##sched##_wait_all_gbl (pfunc_##sched##_task_t*, int); \
int pfunc_##sched##_wait_any_gbl (pfunc_##sched##_task_t*, int, int*); \
int pfunc_##sched##_test_gbl (pfunc_##sched##_task_t); \
int pfunc_##sched##_test_all_gbl (pfunc_##sched##_task_t*, int, int*); \
#define PFUNC_GEN_GROUP_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_GROUP_GET_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_GROUP_INITCLEAR_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_group_init (pfunc_##sched##_group_t*); \
int pfunc_##sched##_group_clear (pfunc_##sched##_group_t*); \
#define PFUNC_GEN_GROUP_SET_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_RANK_AND_SIZE_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_thread_id (pfunc_##sched##_taskmgr_t, unsigned int*); \
int pfunc_##sched##_group_rank (pfunc_##sched##_taskmgr_t, unsigned int*); \
int pfunc_##sched##_group_size (pfunc_##sched##_taskmgr_t, unsigned int*); \
int pfunc_##sched##_barrier (pfunc_##sched##_taskmgr_t);
#define PFUNC_GEN_RUN_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_spawn_c (pfunc_##sched##_taskmgr_t, \
pfunc_##sched##_task_t, \
pfunc_##sched##_attr_t, \
pfunc_##sched##_group_t, \
pfunc_c_work_func_t, \
void*); \
int pfunc_##sched##_spawn_cxx (pfunc_##sched##_taskmgr_t, \
pfunc_##sched##_task_t, \
pfunc_##sched##_attr_t, \
pfunc_##sched##_group_t, \
pfunc_##sched##_work_t);
#define PFUNC_GEN_TASK_DECLS |
( |
|
sched | ) |
PFUNC_GEN_TASK_INITCLEAR_DECLS(sched) |
#define PFUNC_GEN_TASK_INITCLEAR_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_task_init (pfunc_##sched##_task_t*); \
int pfunc_##sched##_task_clear (pfunc_##sched##_task_t*);
#define PFUNC_GEN_TASKMGR_DECLS |
( |
|
sched | ) |
|
#define PFUNC_GEN_TASKMGR_GLOBAL_SET_AND_GET_MAX_ATTEMPTS_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_taskmgr_max_attempts_set_gbl (const unsigned int); \
int pfunc_##sched##_taskmgr_max_attempts_get_gbl (unsigned int*);
#define PFUNC_GEN_TASKMGR_INITCLEAR_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_taskmgr_init (pfunc_##sched##_taskmgr_t*, \
const unsigned int, \
const unsigned int*, \
const unsigned int**); \
int pfunc_##sched##_taskmgr_clear (pfunc_##sched##_taskmgr_t*);
#define PFUNC_GEN_TASKMGR_SET_AND_GET_MAX_ATTEMPTS_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_taskmgr_max_attempts_set (pfunc_##sched##_taskmgr_t, \
const unsigned int); \
int pfunc_##sched##_taskmgr_max_attempts_get (pfunc_##sched##_taskmgr_t, \
unsigned int*);
#define PFUNC_GEN_TESTS_AND_WAITS_DECLS |
( |
|
sched | ) |
|
Value:int pfunc_##sched##_wait (pfunc_##sched##_taskmgr_t, pfunc_##sched##_task_t); \
int pfunc_##sched##_wait_all (pfunc_##sched##_taskmgr_t, pfunc_##sched##_task_t*, int); \
int pfunc_##sched##_wait_any (pfunc_##sched##_taskmgr_t, pfunc_##sched##_task_t*, int, int*); \
int pfunc_##sched##_test (pfunc_##sched##_taskmgr_t, pfunc_##sched##_task_t); \
int pfunc_##sched##_test_all (pfunc_##sched##_taskmgr_t, pfunc_##sched##_task_t*, int, int*); \
#define PFUNC_GEN_WORK_TYPES_DECLS |
( |
|
sched | ) |
|
Value:struct pfunc_##sched##_dummy_work_t; \
typedef struct pfunc_##sched##_dummy_work_t* pfunc_##sched##_work_t; \
int pfunc_##sched##_work_init (pfunc_##sched##_work_t*); \
int pfunc_##sched##_work_clear (pfunc_##sched##_work_t*); \
int pfunc_##sched##_work_func_set (pfunc_##sched##_work_t, pfunc_c_work_func_t); \
int pfunc_##sched##_work_arg_set (pfunc_##sched##_work_t, void*); \
int pfunc_##sched##_work_func_get (pfunc_##sched##_work_t, pfunc_c_work_func_t*); \
int pfunc_##sched##_work_arg_get (pfunc_##sched##_work_t, void**); \
Typedef Documentation
Type to be used for specifying if a task belongs to a group or not
Type to be used for specifying the level of a task
Type to be used for specifying if a task is nested or not
Type to be used for specifying the number of waiters for a task
Priority (when using "prio" is always of type "int"
Type to be used for specifying the queue numbers
we only need decls of pack and unpack Type of the work function
Type to be used for getting and setting the type of barrier to use
Type to be used for getting and setting the group ID
Type to be used for getting and setting the group size
Function Documentation
int pfunc_pack |
( |
char ** |
, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
PFUNC_PACK_CODE Utility functions to pack and unpack the arguements into a single buffer.
int pfunc_unpack |
( |
char * |
, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Variable Documentation
Generate all declarations for cilk Generate all declarations for fifo Generate all declarations for lifo Generate all declarations for prio Declare the global cilk task manager handle
definition of the cilk global taskmgr object
Declare the global fifo task manager handle
definition of the fifo global taskmgr object
Declare the global lifo task manager handle
definition of the lifo global taskmgr object
Declare the global prio task manager handle
definition of the prio global taskmgr object