Summary: | devel/hpx : hpx application crashes since hwloc2 is used | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Thibault Payet <monwarez> |
Component: | Individual Port(s) | Assignee: | Yuri Victorovich <yuri> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(yuri) |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://github.com/open-mpi/hwloc/issues/442 | ||
Bug Depends on: | 252645 | ||
Bug Blocks: |
Description
Thibault Payet
2021-01-13 17:09:17 UTC
Hi Thibault, The stack trace indicates that exception is thrown. When I add exception handling to one of the test cases (hpx_thread_phase.cpp): > try { > ...all your code... > } catch (hpx::exception const& e) { > std::cout << "caught exception: " << e.what() << "\n\n"; > std::cout << "diagnostic information:" << hpx::diagnostic_information(e) << "\n"; > return -1; > } > } I get: > caught exception: Failed to get number of cores: HPX(no_success) It seems to be a hwloc2 failure since hwloc_get_nbobjs_by_type fails to find number of cores. This test program: > #include <hwloc.h> > #include <iostream> > > > int main() { > hwloc_topology_t topo(nullptr); > int err = hwloc_topology_init(&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; > } Prints num_cores=0. This issue is now fixed through the backported patch in devel/hwloc2 that fixes its ability to determine the number of cores. Please reopen if this is still a problem. A commit references this bug: Author: yuri Date: Tue Jan 19 22:53:17 UTC 2021 New revision: 562096 URL: https://svnweb.freebsd.org/changeset/ports/562096 Log: devel/hwloc2: Bugfix: backport the patch that fixes hwloc2's ability to determine n umber of cores on some systems GH issue: https://github.com/open-mpi/hwloc/issues/442 PR: 252643 Changes: head/devel/hwloc2/Makefile head/devel/hwloc2/distinfo |