kmp_stub.h revision 345153
1345153Sdim/* 2345153Sdim * kmp_stub.h 3345153Sdim */ 4345153Sdim 5345153Sdim//===----------------------------------------------------------------------===// 6345153Sdim// 7345153Sdim// The LLVM Compiler Infrastructure 8345153Sdim// 9345153Sdim// This file is dual licensed under the MIT and the University of Illinois Open 10345153Sdim// Source Licenses. See LICENSE.txt for details. 11345153Sdim// 12345153Sdim//===----------------------------------------------------------------------===// 13345153Sdim 14345153Sdim#ifndef KMP_STUB_H 15345153Sdim#define KMP_STUB_H 16345153Sdim 17345153Sdim#ifdef __cplusplus 18345153Sdimextern "C" { 19345153Sdim#endif // __cplusplus 20345153Sdim 21345153Sdimvoid __kmps_set_blocktime(int arg); 22345153Sdimint __kmps_get_blocktime(void); 23345153Sdimvoid __kmps_set_dynamic(int arg); 24345153Sdimint __kmps_get_dynamic(void); 25345153Sdimvoid __kmps_set_library(int arg); 26345153Sdimint __kmps_get_library(void); 27345153Sdimvoid __kmps_set_nested(int arg); 28345153Sdimint __kmps_get_nested(void); 29345153Sdimvoid __kmps_set_stacksize(int arg); 30345153Sdimint __kmps_get_stacksize(); 31345153Sdim 32345153Sdim#ifndef KMP_SCHED_TYPE_DEFINED 33345153Sdim#define KMP_SCHED_TYPE_DEFINED 34345153Sdimtypedef enum kmp_sched { 35345153Sdim kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33) 36345153Sdim kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35) 37345153Sdim kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36) 38345153Sdim kmp_sched_auto = 4, // mapped to kmp_sch_auto (38) 39345153Sdim kmp_sched_default = kmp_sched_static // default scheduling 40345153Sdim} kmp_sched_t; 41345153Sdim#endif 42345153Sdimvoid __kmps_set_schedule(kmp_sched_t kind, int modifier); 43345153Sdimvoid __kmps_get_schedule(kmp_sched_t *kind, int *modifier); 44345153Sdim 45345153Sdim#if OMP_40_ENABLED 46345153Sdimvoid __kmps_set_proc_bind(kmp_proc_bind_t arg); 47345153Sdimkmp_proc_bind_t __kmps_get_proc_bind(void); 48345153Sdim#endif /* OMP_40_ENABLED */ 49345153Sdim 50345153Sdimdouble __kmps_get_wtime(); 51345153Sdimdouble __kmps_get_wtick(); 52345153Sdim 53345153Sdim#ifdef __cplusplus 54345153Sdim} // extern "C" 55345153Sdim#endif // __cplusplus 56345153Sdim 57345153Sdim#endif // KMP_STUB_H 58345153Sdim 59345153Sdim// end of file // 60