Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 25 | void __kmps_set_blocktime( int arg ); |
| 26 | int __kmps_get_blocktime( void ); |
| 27 | void __kmps_set_dynamic( int arg ); |
| 28 | int __kmps_get_dynamic( void ); |
| 29 | void __kmps_set_library( int arg ); |
| 30 | int __kmps_get_library( void ); |
| 31 | void __kmps_set_nested( int arg ); |
| 32 | int __kmps_get_nested( void ); |
| 33 | void __kmps_set_stacksize( int arg ); |
| 34 | int __kmps_get_stacksize(); |
| 35 | |
| 36 | #if OMP_30_ENABLED |
| 37 | #ifndef KMP_SCHED_TYPE_DEFINED |
| 38 | #define KMP_SCHED_TYPE_DEFINED |
| 39 | typedef 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 |
| 47 | void __kmps_set_schedule( kmp_sched_t kind, int modifier ); |
| 48 | void __kmps_get_schedule( kmp_sched_t *kind, int *modifier ); |
| 49 | #endif // OMP_30_ENABLED |
| 50 | |
| 51 | #if OMP_40_ENABLED |
| 52 | void __kmps_set_proc_bind( enum kmp_proc_bind_t arg ); |
| 53 | enum kmp_proc_bind_t __kmps_get_proc_bind( void ); |
| 54 | #endif /* OMP_40_ENABLED */ |
| 55 | |
| 56 | double __kmps_get_wtime(); |
| 57 | double __kmps_get_wtick(); |
| 58 | |
| 59 | #ifdef __cplusplus |
| 60 | } // extern "C" |
| 61 | #endif // __cplusplus |
| 62 | |
| 63 | #endif // KMP_STUB_H |
| 64 | |
| 65 | // end of file // |