blob: 4b3e3ec0c41b6b0f2ce433ec6bc39ae98621639c [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
2 * kmp_stub.h
3 * $Revision: 42061 $
4 * $Date: 2013-02-28 16:36:24 -0600 (Thu, 28 Feb 2013) $
5 */
6
7
8//===----------------------------------------------------------------------===//
9//
10// The LLVM Compiler Infrastructure
11//
12// This file is dual licensed under the MIT and the University of Illinois Open
13// Source Licenses. See LICENSE.txt for details.
14//
15//===----------------------------------------------------------------------===//
16
17
18#ifndef KMP_STUB_H
19#define KMP_STUB_H
20
21#ifdef __cplusplus
22 extern "C" {
23#endif // __cplusplus
24
25void __kmps_set_blocktime( int arg );
26int __kmps_get_blocktime( void );
27void __kmps_set_dynamic( int arg );
28int __kmps_get_dynamic( void );
29void __kmps_set_library( int arg );
30int __kmps_get_library( void );
31void __kmps_set_nested( int arg );
32int __kmps_get_nested( void );
33void __kmps_set_stacksize( int arg );
34int __kmps_get_stacksize();
35
36#if OMP_30_ENABLED
37#ifndef KMP_SCHED_TYPE_DEFINED
38#define KMP_SCHED_TYPE_DEFINED
39typedef enum kmp_sched {
40 kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33)
41 kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35)
42 kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36)
43 kmp_sched_auto = 4, // mapped to kmp_sch_auto (38)
44 kmp_sched_default = kmp_sched_static // default scheduling
45} kmp_sched_t;
46#endif
47void __kmps_set_schedule( kmp_sched_t kind, int modifier );
48void __kmps_get_schedule( kmp_sched_t *kind, int *modifier );
49#endif // OMP_30_ENABLED
50
51#if OMP_40_ENABLED
52void __kmps_set_proc_bind( enum kmp_proc_bind_t arg );
53enum kmp_proc_bind_t __kmps_get_proc_bind( void );
54#endif /* OMP_40_ENABLED */
55
56double __kmps_get_wtime();
57double __kmps_get_wtick();
58
59#ifdef __cplusplus
60 } // extern "C"
61#endif // __cplusplus
62
63#endif // KMP_STUB_H
64
65// end of file //