Intel® OpenMP* Runtime Library
 All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
kmp_stub.h
1 /*
2  * kmp_stub.h
3  * $Revision: 42951 $
4  * $Date: 2014-01-21 14:41:41 -0600 (Tue, 21 Jan 2014) $
5  */
6 
7 /* <copyright>
8  Copyright (c) 1997-2014 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 #ifndef KMP_SCHED_TYPE_DEFINED
56 #define KMP_SCHED_TYPE_DEFINED
57 typedef enum kmp_sched {
58  kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33)
59  kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35)
60  kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36)
61  kmp_sched_auto = 4, // mapped to kmp_sch_auto (38)
62  kmp_sched_default = kmp_sched_static // default scheduling
63 } kmp_sched_t;
64 #endif
65 void __kmps_set_schedule( kmp_sched_t kind, int modifier );
66 void __kmps_get_schedule( kmp_sched_t *kind, int *modifier );
67 
68 #if OMP_40_ENABLED
69 void __kmps_set_proc_bind( kmp_proc_bind_t arg );
70 kmp_proc_bind_t __kmps_get_proc_bind( void );
71 #endif /* OMP_40_ENABLED */
72 
73 double __kmps_get_wtime();
74 double __kmps_get_wtick();
75 
76 #ifdef __cplusplus
77  } // extern "C"
78 #endif // __cplusplus
79 
80 #endif // KMP_STUB_H
81 
82 // end of file //