Merge pull request #1095 from Spudz76/evo-fixOlderHwlocVersionDisplay
Build hwloc version string based on HWLOC_API_VERSION
This commit is contained in:
@ -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; });
|
||||
|
Reference in New Issue
Block a user