ROSE  0.9.9.109
libompc.h
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 // DQ (12/6/2016): We want to provide n explicit declaration of this function to avoid implicit function declaration warning: -Wimplicit-function-declaration.
49 extern void _ompc_init_ordered(int lb,int step);
50 
51 #ifdef __cplusplus
52  }
53 #endif
54