Use only HardwareTopology for thread affinity
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 13 May 2016 14:57:38 +0000 (17:57 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sat, 21 May 2016 14:45:50 +0000 (16:45 +0200)
commit7ca1a0944dc0c45b1b452e8f5115d00ff31cee33
tree0637d1c66b1996c4a25c9a265cdd4ea1882216a4
parent32c15c2d0e844110c7988f9d1c5cbcce6b840a12
Use only HardwareTopology for thread affinity

Pass only HardwareTopology to thread affinity setting code, instead of
full gmx_hw_info_t.  This reduces coupling, removes some uses of
nthreads_hw_avail, and makes things simpler to test.

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