ROSE 0.11.145.192
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
8extern "C" {
9#endif
10
11extern void _ompc_init(int argc, char *argv[]);
12extern void _ompc_terminate (int);
13extern void _ompc_do_parallel(void (*func)(void **),void *args);
14//extern unsigned __ompc_output(char [],...);
15extern void _ompc_default_sched(int *lb, int *ub, int *step);
16extern void _ompc_reduction(void *in_p,void *out_p,int type, int op);
17extern void _ompc_barrier(void);
18extern int _ompc_do_single(void);
19extern int _ompc_is_master(void);
20extern void _ompc_flush(char *dst, int nbyte);
21
22//extern void * __ompc_lock_critical;
23extern void _ompc_enter_critical(void **);
24extern void _ompc_exit_critical(void **);
25extern void _ompc_atomic_lock(void);
26extern void _ompc_atomic_unlock(void);
27extern int _ompc_is_last(void);
28extern void * _ompc_get_thdprv(void ***thdprv_p,int size,void *datap);
29extern void _ompc_copyin_thdprv(void *datap,void *global_datap,int size);
30// scheduling
31extern void _ompc_default_sched(int *lb, int *ub, int *step);
32extern void _ompc_static_bsched(int *lb, int *ub, int *step);
33extern void _ompc_static_sched_init(int lb, int up, int step, int chunk_size);
34extern void _ompc_dynamic_sched_init(int lb, int up, int step, int chunk_size);
35extern void _ompc_guided_sched_init(int lb, int up, int step, int chunk_size);
36extern void _ompc_runtime_sched_init(int lb, int up, int step);
37extern int _ompc_static_sched_next(int *lb, int *ub);
38extern int _ompc_dynamic_sched_next(int *lb, int *ub);
39extern int _ompc_guided_sched_next(int *lb, int *ub);
40extern int _ompc_runtime_sched_next(int *lb, int *ub);
41
42// section
43extern void _ompc_section_init(int n_sections);
44extern int _ompc_section_id();
45
46extern 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.
49extern void _ompc_init_ordered(int lb,int step);
50
51#ifdef __cplusplus
52 }
53#endif
54