1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Merge pull request #1095 from Spudz76/evo-fixOlderHwlocVersionDisplay

Build hwloc version string based on HWLOC_API_VERSION
This commit is contained in:
xmrig
2019-08-02 17:58:30 +07:00
committed by GitHub

View File

@@ -167,7 +167,11 @@ xmrig::HwlocCpuInfo::HwlocCpuInfo() : BasicCpuInfo(),
else else
# endif # endif
{ {
snprintf(m_backend, sizeof m_backend, "hwloc"); snprintf(m_backend, sizeof m_backend, "hwloc/%d.%d.%d",
(HWLOC_API_VERSION>>16)&0x000000ff,
(HWLOC_API_VERSION>>8 )&0x000000ff,
(HWLOC_API_VERSION )&0x000000ff
);
} }
findCache(root, 2, 3, [this](hwloc_obj_t found) { this->m_cache[found->attr->cache.depth] += found->attr->cache.size; }); findCache(root, 2, 3, [this](hwloc_obj_t found) { this->m_cache[found->attr->cache.depth] += found->attr->cache.size; });