summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_runtime.cpp
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2017-06-05 17:17:33 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2017-06-05 17:17:33 +0000
commitd454c73cc3085b151feb0935527174fba6d0ae91 (patch)
tree51c0a0581f28cf4756e486f573787f7ab90b2273 /openmp/runtime/src/kmp_runtime.cpp
parent6350de76fa8c369a6cc659b31f558bf4d352a58a (diff)
downloadbcm5719-llvm-d454c73cc3085b151feb0935527174fba6d0ae91.tar.gz
bcm5719-llvm-d454c73cc3085b151feb0935527174fba6d0ae91.zip
OpenMP 4.5: implemented support of schedule(simd:guided) and
schedule(simd:runtime) - library part. Compiler generation should use newly introduced scheduling kinds kmp_sch_guided_simd = 46, kmp_sch_runtime_simd = 47, as parameters to __kmpc_dispatch_init_* entries. Differential Revision: https://reviews.llvm.org/D31602 llvm-svn: 304724
Diffstat (limited to 'openmp/runtime/src/kmp_runtime.cpp')
-rw-r--r--openmp/runtime/src/kmp_runtime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 17ea8eb9637..7048b5a2dc8 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -2744,7 +2744,7 @@ void __kmp_set_schedule(int gtid, kmp_sched_t kind, int chunk) {
__kmp_sch_map[kind - kmp_sched_lower_ext + kmp_sched_upper_std -
kmp_sched_lower - 2];
}
- if (kind == kmp_sched_auto) {
+ if (kind == kmp_sched_auto || chunk < 1) {
// ignore parameter chunk for schedule auto
thread->th.th_current_task->td_icvs.sched.chunk = KMP_DEFAULT_CHUNK;
} else {
OpenPOWER on IntegriCloud