FreeBSD Bugzilla – Attachment 221539 Details for
Bug 252645
devel/hwloc2: hwloc_get_nbobjs_by_type fails to find number of cores
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
testcase-hwloc.cpp
testcase-hwloc.cpp (text/plain), 492 bytes, created by
Yuri Victorovich
on 2021-01-13 18:38:12 UTC
(
hide
)
Description:
testcase-hwloc.cpp
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2021-01-13 18:38:12 UTC
Size:
492 bytes
patch
obsolete
> >#include <hwloc.h> > >#include <iostream> > >// work/hpx-1.2.1/src/runtime/threads/topology.cpp > >int main() { > hwloc_topology_t topo(nullptr); > int err = hwloc_topology_init(&topo); > if (err != 0) > std::cout << "err=" << err << std::endl; > > err = hwloc_topology_load(topo); > if (err != 0) > std::cout << "err=" << err << std::endl; > > int num_cores = hwloc_get_nbobjs_by_type(topo, HWLOC_OBJ_CORE); > std::cout << "num_cores=" << num_cores << std::endl; > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 252645
:
221538
| 221539