blob: 44bd1f764f7dcdbc24ff4d5921a43e0f4ec4f935 [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
2 * kmp_stub.h
Jim Cownie4cc4bb42014-10-07 16:25:50 +00003 * $Revision: 42951 $
4 * $Date: 2014-01-21 14:41:41 -0600 (Tue, 21 Jan 2014) $
Jim Cownie5e8470a2013-09-27 10:38:44 +00005 */
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
Jim Cownie5e8470a2013-09-27 10:38:44 +000036#ifndef KMP_SCHED_TYPE_DEFINED
37#define KMP_SCHED_TYPE_DEFINED
38typedef enum kmp_sched {
39 kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33)
40 kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35)
41 kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36)
42 kmp_sched_auto = 4, // mapped to kmp_sch_auto (38)
43 kmp_sched_default = kmp_sched_static // default scheduling
44} kmp_sched_t;
45#endif
46void __kmps_set_schedule( kmp_sched_t kind, int modifier );
47void __kmps_get_schedule( kmp_sched_t *kind, int *modifier );
Jim Cownie5e8470a2013-09-27 10:38:44 +000048
49#if OMP_40_ENABLED
Jim Cownie4cc4bb42014-10-07 16:25:50 +000050void __kmps_set_proc_bind( kmp_proc_bind_t arg );
51kmp_proc_bind_t __kmps_get_proc_bind( void );
Jim Cownie5e8470a2013-09-27 10:38:44 +000052#endif /* OMP_40_ENABLED */
53
54double __kmps_get_wtime();
55double __kmps_get_wtick();
56
57#ifdef __cplusplus
58 } // extern "C"
59#endif // __cplusplus
60
61#endif // KMP_STUB_H
62
63// end of file //