-
Notifications
You must be signed in to change notification settings - Fork 1k
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
NUMA Nodes Not Correctly Detected in TBB (Version 2022.0) #1588
Comments
Hi @GuyZilberman, it seems HWLOC is missing in environment so TBBBind cannot be loaded. |
Hi @pavelkumbrasev, Thank you for your response. I followed your suggestion to check the environment for TBBBIND and HWLOC. Here’s what I’ve found: I set the TBB_VERSION environment variable and reran the program. The output confirmed that TBBBIND is unavailable, as shown below:
I verified HWLOC on my system using hwloc-ls. It successfully identifies the NUMA nodes and CPU mappings:
Could you advise on what further steps I should take to resolve this issue? |
What HWLOC version do you have? You can also add path to HWLOC libs into |
HWLOC version:
I tried this:
However it also didn't work unfortunately... Would love to hear more suggestions |
Hmm, at this point I'm not entirely sure what is wrong. Can you try to update HWLOC version to 2.5 or higher? |
I updated to:
But I'm still getting:
Was I perhaps supposed to use any flags to enable TBBBIND when I used cmake and make to build oneTBB? |
Did you build TBB from source or downloaded from the releases? |
This is how I built TBB:
This is my list of binaries:
|
It seems I used the wrong installation commands earlier. I uninstalled the previous installation and reinstalled following the example provided here. This time, it worked! |
Summary
TBB does not correctly recognize NUMA nodes on a system with 2 NUMA nodes. The tbb::info::numa_nodes() API returns a single invalid index -1, while the system clearly supports NUMA with proper NUMA node IDs.
Version
oneTBB version: 2022.0
Environment
Output of lscpu | grep "NUMA node":
OS:
Compiler:
Observed Behavior
The program outputs the following:
This indicates that TBB failed to detect the NUMA nodes correctly.
Expected Behavior
TBB should recognize and return the correct NUMA node indexes (0 and 1) via the tbb::info::numa_nodes() API.
Steps To Reproduce
Ensure NUMA is enabled on the system. Verify with the command lscpu | grep "NUMA node".
Use the following program to reproduce the issue:
Compile the program using the following command:
Run the compiled program:
Observe the output. If NUMA detection fails, the program will print:
The text was updated successfully, but these errors were encountered: