Update affinity checking for Intel compiler
authorErik Lindahl <erik@kth.se>
Thu, 7 Jul 2016 18:29:33 +0000 (20:29 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Fri, 8 Jul 2016 17:16:41 +0000 (19:16 +0200)
commit14ed2ccde799cd12cfd3c070419dc477f396cdbf
treebe88c848b776fbb47187a46f527fa2592a411e5c
parent1726c6263fc21e8d0a8636636c5459c76df270e8
Update affinity checking for Intel compiler

Since release 2013, the Intel compiler no longer sets
OpenMP affinity by default according to intel docs. This
means the code that tried to disable it by setting
environment variables no longer had any effect (and we
likely have not checked it the last few years). In
addition, it is not ideal behaviour in a library either to
assume that no other code has executed OpenMP prior to a call
or to set environment variables that influence other code
execution too. However, we will still disable Gromacs' own
thread affinity if it has been set by the user or calling code.

Change-Id: I57a952766e87a35483f1960b349f7c30d5b85f24
src/gromacs/utility/gmxomp.cpp
src/gromacs/utility/gmxomp.h