Use HardwareTopology to set nthreads_hw_avail
commit9af411e4ea9f6a9122a2633197fdc7f7ba0f6151
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 26 Apr 2016 13:46:47 +0000 (26 16:46 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 28 Apr 2016 08:13:29 +0000 (28 10:13 +0200)
treea88223c890bf768a71115f32766b02298f97b5bc
parent840c5e7149619eefc1cbe6bc156c38c8f17d9401
Use HardwareTopology to set nthreads_hw_avail

This removes duplication and confusing logic where the same quantity was
populated using different approaches...  This also makes it easy to
reason about and replace uses of this variable with its equivalent in
HardwareTopology, for code that can operate on HardwareTopology alone
instead of the full gmx_hw_info_t.

Change-Id: I543d99b9a2ae5b4ca866c4de6e3e049c271671e8
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/hardwaretopology.cpp