The hwloc version in gmx --version and log files had been
taken from HWLOC_API_VERSION in the hwloc header, which is
not always updated to reflect new releases.
Added HWLOC_VERSION to buildinfo.h from cmake, used in place of
HWLOC_API_VERSION
Fixes #2591
Change-Id: I0ed9f1f1ad9b4262fbb966c03c407eeb1edfc3da
/** Location of GROMACS-specific data files */
#define GMX_INSTALL_GMXDATADIR "@GMX_INSTALL_GMXDATADIR@"
+/** HWLOC version information */
+#define HWLOC_VERSION "@HWLOC_VERSION@"
+
/** CUDA compiler version information */
#define CUDA_COMPILER_INFO "@CUDA_COMPILER_INFO@"
writer->writeLine("TNG support: disabled");
#endif
#if GMX_HWLOC
- writer->writeLine(formatString("Hwloc support: hwloc-%d.%d.%d",
- HWLOC_API_VERSION>>16,
- (HWLOC_API_VERSION>>8) & 0xFF,
- HWLOC_API_VERSION & 0xFF));
+ writer->writeLine(formatString("Hwloc support: hwloc-%s", HWLOC_VERSION));
#else
writer->writeLine("Hwloc support: disabled");
#endif