Consolidate architecture booleans
commit863768a4dad816bd67c34aaead28e3287f5ba891
authorBerk Hess <hess@kth.se>
Fri, 25 Aug 2017 20:25:18 +0000 (25 22:25 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 Sep 2017 15:03:04 +0000 (4 17:03 +0200)
treec2361c95c2ae29a0a17a63b47a964cdbea8add49
parente036127d49f187cff991f5d8a6e0f36809ae07ca
Consolidate architecture booleans

The booleans used in the hardware module for identifying architecures
are replaced by a single enum in archtecture.h. The duplicate
preprocessor code in cpuinfo.cpp now also uses this enum instead.
Note that hardwareinfo.cpp did not check for __i386, x86, __amd64__
and _M_AMD64, I don't know if this caused issues.

Also moved gpu_detec_res_str to new file gpu_hw_info.cpp.

Change-Id: I812482854d346c9290b0a428dada88072dc5a707
src/gromacs/hardware/CMakeLists.txt
src/gromacs/hardware/architecture.h [copied from src/gromacs/hardware/detecthardware.h with 61% similarity]
src/gromacs/hardware/cpuinfo.cpp
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/hardware/gpu_hw_info.cpp [copied from src/gromacs/hardware/detecthardware.h with 60% similarity]