ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
libompc.h
Go to the documentation of this file.
1 // the Omni runtime library's interface to the compiler
2 // TODO: sort the list
3 
4 // by C. Liao, June 14, 2006
5 
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 extern void _ompc_init(int argc, char *argv[]);
12 extern void _ompc_terminate (int);
13 extern void _ompc_do_parallel(void (*func)(void **),void *args);
14 //extern unsigned __ompc_output(char [],...);
15 extern void _ompc_default_sched(int *lb, int *ub, int *step);
16 extern void _ompc_reduction(void *in_p,void *out_p,int type, int op);
17 extern void _ompc_barrier(void);
18 extern int _ompc_do_single(void);
19 extern int _ompc_is_master(void);
20 extern void _ompc_flush(char *dst, int nbyte);
21 
22 //extern void * __ompc_lock_critical;
23 extern void _ompc_enter_critical(void **);
24 extern void _ompc_exit_critical(void **);
25 extern void _ompc_atomic_lock(void);
26 extern void _ompc_atomic_unlock(void);
27 extern int _ompc_is_last(void);
28 extern void * _ompc_get_thdprv(void ***thdprv_p,int size,void *datap);
29 extern void _ompc_copyin_thdprv(void *datap,void *global_datap,int size);
30 // scheduling
31 extern void _ompc_default_sched(int *lb, int *ub, int *step);
32 extern void _ompc_static_bsched(int *lb, int *ub, int *step);
33 extern void _ompc_static_sched_init(int lb, int up, int step, int chunk_size);
34 extern void _ompc_dynamic_sched_init(int lb, int up, int step, int chunk_size);
35 extern void _ompc_guided_sched_init(int lb, int up, int step, int chunk_size);
36 extern void _ompc_runtime_sched_init(int lb, int up, int step);
37 extern int _ompc_static_sched_next(int *lb, int *ub);
38 extern int _ompc_dynamic_sched_next(int *lb, int *ub);
39 extern int _ompc_guided_sched_next(int *lb, int *ub);
40 extern int _ompc_runtime_sched_next(int *lb, int *ub);
41 
42 // section
43 extern void _ompc_section_init(int n_sections);
44 extern int _ompc_section_id();
45 
46 extern double omp_get_wtick();
47 
48 #ifdef __cplusplus
49  }
50 #endif
51