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