kmp_stub.h revision 353358
1345153Sdim/* 2345153Sdim * kmp_stub.h 3345153Sdim */ 4345153Sdim 5345153Sdim//===----------------------------------------------------------------------===// 6345153Sdim// 7353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 8353358Sdim// See https://llvm.org/LICENSE.txt for license information. 9353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 10345153Sdim// 11345153Sdim//===----------------------------------------------------------------------===// 12345153Sdim 13345153Sdim#ifndef KMP_STUB_H 14345153Sdim#define KMP_STUB_H 15345153Sdim 16345153Sdim#ifdef __cplusplus 17345153Sdimextern "C" { 18345153Sdim#endif // __cplusplus 19345153Sdim 20345153Sdimvoid __kmps_set_blocktime(int arg); 21345153Sdimint __kmps_get_blocktime(void); 22345153Sdimvoid __kmps_set_dynamic(int arg); 23345153Sdimint __kmps_get_dynamic(void); 24345153Sdimvoid __kmps_set_library(int arg); 25345153Sdimint __kmps_get_library(void); 26345153Sdimvoid __kmps_set_nested(int arg); 27345153Sdimint __kmps_get_nested(void); 28345153Sdimvoid __kmps_set_stacksize(int arg); 29345153Sdimint __kmps_get_stacksize(); 30345153Sdim 31345153Sdim#ifndef KMP_SCHED_TYPE_DEFINED 32345153Sdim#define KMP_SCHED_TYPE_DEFINED 33345153Sdimtypedef enum kmp_sched { 34345153Sdim kmp_sched_static = 1, // mapped to kmp_sch_static_chunked (33) 35345153Sdim kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked (35) 36345153Sdim kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked (36) 37345153Sdim kmp_sched_auto = 4, // mapped to kmp_sch_auto (38) 38345153Sdim kmp_sched_default = kmp_sched_static // default scheduling 39345153Sdim} kmp_sched_t; 40345153Sdim#endif 41345153Sdimvoid __kmps_set_schedule(kmp_sched_t kind, int modifier); 42345153Sdimvoid __kmps_get_schedule(kmp_sched_t *kind, int *modifier); 43345153Sdim 44345153Sdimkmp_proc_bind_t __kmps_get_proc_bind(void); 45345153Sdim 46345153Sdimdouble __kmps_get_wtime(); 47345153Sdimdouble __kmps_get_wtick(); 48345153Sdim 49345153Sdim#ifdef __cplusplus 50345153Sdim} // extern "C" 51345153Sdim#endif // __cplusplus 52345153Sdim 53345153Sdim#endif // KMP_STUB_H 54345153Sdim 55345153Sdim// end of file // 56