[OpenMP] Fix misleading warning for OMP_PLACES
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Thu, 21 Jan 2021 19:38:35 +0000 (13:38 -0600)
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Wed, 27 Jan 2021 20:27:24 +0000 (14:27 -0600)
commit8e6713436462daa43d84f8450d07a54f7657c31b
tree318d38b9b6b749c9ce5598a4a61eba4e5fe0ea6f
parent598c590b3c9684471a5186221c500b1fd7a4e325
[OpenMP] Fix misleading warning for OMP_PLACES

When OMP_PLACES contains an invalid value, the warning informs the user
that the fallback is OMP_PLACES=threads, but the actual internal setting
is OMP_PLACES=cores and is detected as such with KMP_SETTINGS=1.
This patch informs the user that OMP_PLACES=cores is being used instead
of OMP_PLACES=threads.

Differential Revision: https://reviews.llvm.org/D95170
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/test/affinity/omp-places-invalid-syntax.c [new file with mode: 0644]