brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · caaf783 Raw
56 lines · c
1/*2 * kmp_stub.h3 */4 5//===----------------------------------------------------------------------===//6//7// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.8// See https://llvm.org/LICENSE.txt for license information.9// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception10//11//===----------------------------------------------------------------------===//12 13#ifndef KMP_STUB_H14#define KMP_STUB_H15 16#ifdef __cplusplus17extern "C" {18#endif // __cplusplus19 20void __kmps_set_blocktime(int arg);21int __kmps_get_blocktime(void);22void __kmps_set_dynamic(int arg);23int __kmps_get_dynamic(void);24void __kmps_set_library(int arg);25int __kmps_get_library(void);26void __kmps_set_nested(int arg);27int __kmps_get_nested(void);28void __kmps_set_stacksize(size_t arg);29size_t __kmps_get_stacksize();30 31#ifndef KMP_SCHED_TYPE_DEFINED32#define KMP_SCHED_TYPE_DEFINED33typedef enum kmp_sched {34  kmp_sched_static = 1, // mapped to kmp_sch_static_chunked           (33)35  kmp_sched_dynamic = 2, // mapped to kmp_sch_dynamic_chunked          (35)36  kmp_sched_guided = 3, // mapped to kmp_sch_guided_chunked           (36)37  kmp_sched_auto = 4, // mapped to kmp_sch_auto                     (38)38  kmp_sched_default = kmp_sched_static // default scheduling39} kmp_sched_t;40#endif41void __kmps_set_schedule(kmp_sched_t kind, int modifier);42void __kmps_get_schedule(kmp_sched_t *kind, int *modifier);43 44kmp_proc_bind_t __kmps_get_proc_bind(void);45 46double __kmps_get_wtime();47double __kmps_get_wtick();48 49#ifdef __cplusplus50} // extern "C"51#endif // __cplusplus52 53#endif // KMP_STUB_H54 55// end of file //56