Force honoring nthreads-var and thread-limit-var inside teams construct on host
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 20 Aug 2019 19:39:17 +0000 (19:39 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 20 Aug 2019 19:39:17 +0000 (19:39 +0000)
commit57ae6b8e377c8af41c9a017fe9b7c7f4b2fc04f7
treef5b02f00bfed091c60e42f59a2bf7781960e8d89
parentc310e5a7ab6c7606f2c9ef0d7b0efae8a5568efe
Force honoring nthreads-var and thread-limit-var inside teams construct on host

This patch fixes https://bugs.llvm.org/show_bug.cgi?id=42906, via adding
adjustment of number of threads on enter to the teams construct on host
according to user settings. This allows to pass checks and avoid assertions
at time of team of threads creation.

Patch by Andrey Churbanov

Differential Revision: https://reviews.llvm.org/D66351

llvm-svn: 369430
openmp/runtime/src/kmp_runtime.cpp