Move some defines to gmxpre.h for thread-MPI
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 5 Sep 2014 18:55:55 +0000 (21:55 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 5 Sep 2014 18:55:55 +0000 (21:55 +0300)
commitc10a038ffc471ca47f65ef844e31b8ba26535344
tree46b0380e3662ce21290692d0eb566d205a38cb47
parente8b8107c93c32c1ec4c6b6921ed2f8d46f5b2dc7
Move some defines to gmxpre.h for thread-MPI

Thread-MPI requires TMPI_WAIT_FOR_NO_ONE to be defined consistently in
all code that may use structs that use TMPI_YIELD_WAIT_DATA, and there
are several of those structs.  Moved the definition for this macro to
gmxpre.h, so that it should be defined everywhere and not cause
surprises.  Rationale for not moving any other defines (some are used by
thread_mpi/include/*) is given in comments, and if/when thread-MPI is
going to disappear sooner or later, there hopefully will not be much
more code introduced that would depend on it and would require a more
robust mechanism, or warrant changing thread-MPI itself.

Change-Id: Ic9f1c2c63fee183e65506f06fdc84d10cc5f97b9
src/config.h.cmakein
src/gmxpre-config.h.cmakein