Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * kmp_stub.h |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 3 | * $Revision: 42951 $ |
| 4 | * $Date: 2014-01-21 14:41:41 -0600 (Tue, 21 Jan 2014) $ |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 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 | |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 36 | #ifndef KMP_SCHED_TYPE_DEFINED |
| 37 | #define KMP_SCHED_TYPE_DEFINED |
| 38 | typedef 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 |
| 46 | void __kmps_set_schedule( kmp_sched_t kind, int modifier ); |
| 47 | void __kmps_get_schedule( kmp_sched_t *kind, int *modifier ); |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 48 | |
| 49 | #if OMP_40_ENABLED |
Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 50 | void __kmps_set_proc_bind( kmp_proc_bind_t arg ); |
| 51 | kmp_proc_bind_t __kmps_get_proc_bind( void ); |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 52 | #endif /* OMP_40_ENABLED */ |
| 53 | |
| 54 | double __kmps_get_wtime(); |
| 55 | double __kmps_get_wtick(); |
| 56 | |
| 57 | #ifdef __cplusplus |
| 58 | } // extern "C" |
| 59 | #endif // __cplusplus |
| 60 | |
| 61 | #endif // KMP_STUB_H |
| 62 | |
| 63 | // end of file // |