fixed OpenMP threads being pinned to the same cores
authorBerk Hess <hess@kth.se>
Tue, 22 Oct 2013 10:02:44 +0000 (12:02 +0200)
committerBerk Hess <hess@kth.se>
Tue, 22 Oct 2013 10:04:23 +0000 (12:04 +0200)
commit6aeb9d180579594a7ad5da0261fb44ce172fd698
tree7c7c497363f756e3ce020e654c61efbbfb637b59
parent25eb0e14db996febfe78195a2e63ee2874ae84f7
fixed OpenMP threads being pinned to the same cores

Due to the thread id not being a thread-local variable in the OpenMP
loop setting the thread affinities, different OpenMP threads could be
pinned to the same physical cores.
Fixes #1360

Change-Id: I7bc39aef9a8854ec24006895da6005c1326033a3
src/gmxlib/gmx_thread_affinity.c