Pass number of local threads to thread affinity
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 14 May 2016 04:13:13 +0000 (07:13 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sat, 21 May 2016 17:09:05 +0000 (20:09 +0300)
commit927ffd086a29692569fafe7f6b82ce90083d01b3
treeae0722e5366f04e894348d35a76418516d988d94
parent2a98e467fa7d8cceda4fb6976a95cbf72bd52368
Pass number of local threads to thread affinity

This removes some mdrun-specific logic from threadaffinity.cpp and makes
it independent of gmx_omp_nthreads, reducing coupling.  It also
simplifies unit testing.

Change-Id: Id881a7fabbe7fb48bd187d3d903aea08e418d1c2
src/gromacs/mdrunutility/threadaffinity.cpp
src/gromacs/mdrunutility/threadaffinity.h
src/programs/mdrun/runner.cpp