Intel® OpenMP* Runtime Library
 All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
kmp_stub.h
1 /*
2  * kmp_stub.h
3  */
4 
5 /* <copyright>
6  Copyright (c) 1997-2015 Intel Corporation. All Rights Reserved.
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions
10  are met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions and the following disclaimer in the
16  documentation and/or other materials provided with the distribution.
17  * Neither the name of Intel Corporation nor the names of its
18  contributors may be used to endorse or promote products derived
19  from this software without specific prior written permission.
20 
21  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 </copyright> */
34 
35 #ifndef KMP_STUB_H
36 #define KMP_STUB_H
37 
38 #ifdef __cplusplus
39  extern "C" {
40 #endif // __cplusplus
41 
42 void __kmps_set_blocktime( int arg );
43 int __kmps_get_blocktime( void );
44 void __kmps_set_dynamic( int arg );
45 int __kmps_get_dynamic( void );
46 void __kmps_set_library( int arg );
47 int __kmps_get_library( void );
48 void __kmps_set_nested( int arg );
49 int __kmps_get_nested( void );
50 void __kmps_set_stacksize( int arg );
51 int __kmps_get_stacksize();
52 
53 #ifndef KMP_SCHED_TYPE_DEFINED
54 #define KMP_SCHED_TYPE_DEFINED
55 typedef enum kmp_sched {
56  kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33)
57  kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35)
58  kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36)
59  kmp_sched_auto = 4, // mapped to kmp_sch_auto (38)
60  kmp_sched_default = kmp_sched_static // default scheduling
61 } kmp_sched_t;
62 #endif
63 void __kmps_set_schedule( kmp_sched_t kind, int modifier );
64 void __kmps_get_schedule( kmp_sched_t *kind, int *modifier );
65 
66 #if OMP_40_ENABLED
67 void __kmps_set_proc_bind( kmp_proc_bind_t arg );
68 kmp_proc_bind_t __kmps_get_proc_bind( void );
69 #endif /* OMP_40_ENABLED */
70 
71 double __kmps_get_wtime();
72 double __kmps_get_wtick();
73 
74 #ifdef __cplusplus
75  } // extern "C"
76 #endif // __cplusplus
77 
78 #endif // KMP_STUB_H
79 
80 // end of file //