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
commit 768d417e8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,11 @@ xmrig::HwlocCpuInfo::HwlocCpuInfo() : BasicCpuInfo(),
else
# 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; });