Use 'critical' reduction method when 'atomic' is not available but requested.
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 2 Sep 2016 18:29:45 +0000 (18:29 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 2 Sep 2016 18:29:45 +0000 (18:29 +0000)
commit5c32d5ef0d6cdb92666f75fe7b44b8f74c362564
tree347c3c164077c835bd310ac73b4316c08bb47877
parente31cc842902c5e0a3b5e250249532e180f6374a2
Use 'critical' reduction method when 'atomic' is not available but requested.

In case atomic reduction method is not available (the compiler can't generate
it) the assertion failure occurred if KMP_FORCE_REDUCTION=atomic was specified.
This change replaces the assertion with a warning and sets the reduction method
to the default one - 'critical'.

Patch by Olga Malysheva

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

llvm-svn: 280519
openmp/runtime/src/i18n/en_US.txt
openmp/runtime/src/kmp_runtime.c