8000 Link tbbbind against static HWLOC instead of HWLOC 1.11 by isaevil · Pull Request #1631 · uxlfoundation/oneTBB · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Link tbbbind against static HWLOC instead of HWLOC 1.11 #1631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 4, 2025

Conversation

isaevil
Copy link
Contributor
@isaevil isaevil commented Feb 10, 2025

Description

Reserve "tbbbind" library name for the library, statically linked with HWLOC 2.x instead of HWLOC 1.11 as was proposed in https://github.com/uxlfoundation/oneTBB/blob/master/rfcs/proposed/numa_support/tbbbind-link-static-hwloc.org#proposal

Fixes # - issue number(s) if exists

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

List users with @ to send notifications

Other information

Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
isaevil and others added 2 commits February 13, 2025 15:40
Co-authored-by: Aleksei Fedotov <aleksei.fedotov@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
@@ -79,12 +79,17 @@ TEST_CASE("Test core types topology traversal correctness") {
TEST_CASE("Test validity of NUMA interfaces when HWLOC is not present on the system") {
std::vector<oneapi::tbb::numa_node_id> numa_indexes = oneapi::tbb::info::numa_nodes();

#if __TBB_PORTABLE_TBBBIND_AVAILABLE
REQUIRE_MESSAGE(numa_indexes[0] != -1,
Copy link
Contributor
@aleksei-fedotov aleksei-fedotov Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why -1 is used below. Is not that there automatic value for this or are these values unrelated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constraints are set to task_arena::automatic by default. Don't know why in wasn't used in this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use task_arena::automatic then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

Co-authored-by: Aleksei Fedotov <aleksei.fedotov@intel.com>
@@ -79,12 +79,17 @@ TEST_CASE("Test core types topology traversal correctness") {
TEST_CASE("Test validity of NUMA interfaces when HWLOC is not present on the system") {
std::vector<oneapi::tbb::numa_node_id> numa_indexes = oneapi::tbb::info::numa_nodes();

#if __TBB_PORTABLE_TBBBIND_AVAILABLE
REQUIRE_MESSAGE(numa_indexes[0] != -1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use task_arena::automatic then.

Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
@isaevil isaevil merged commit 196cbe5 into master Mar 4, 2025
27 checks passed
@isaevil isaevil deleted the dev/isaevil/tbbbind-standalone branch March 4, 2025 09:05
@aepanchi aepanchi mentioned this pull request Jun 4, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0