mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 10:01:06 +00:00
Build hwloc version string based on HWLOC_API_VERSION, whenever hwlocVersion
object does not exist (<1.11.x)
This commit is contained in:
parent
bdaf28adf8
commit
e584b266df
1 changed files with 5 additions and 1 deletions
|
@ -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; });
|
||||||
|
|
Loading…
Reference in a new issue