Skip to content

Use OpenMP for threading instead of TBB#171

Merged
ndgrigorian merged 6 commits intomainfrom
drop-tbb-threading
Mar 14, 2026
Merged

Use OpenMP for threading instead of TBB#171
ndgrigorian merged 6 commits intomainfrom
drop-tbb-threading

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

This PR proposes moving from TBB to OpenMP threading due to observed segfaults in the Python interpreter teardown when using TBB, likely from having multiple threading frameworks installed simultaneously when using PyPI NumPy

@ndgrigorian ndgrigorian marked this pull request as ready for review March 10, 2026 23:35
OpenMP implicitly needs to be found by MKL with "intel_thread" set, so the set is unnecessary
@ndgrigorian ndgrigorian requested a review from antonwolfy March 12, 2026 15:35
@antonwolfy antonwolfy added this to the 0.4.0 release milestone Mar 14, 2026
antonwolfy
antonwolfy previously approved these changes Mar 14, 2026
Copy link
Copy Markdown
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Since the performance measurements (done through npbench) proves no impact, LGTM!
The only minor nit below.

Thank you @ndgrigorian for resolving the issue with crash.

@ndgrigorian ndgrigorian requested a review from antonwolfy March 14, 2026 09:54
@ndgrigorian ndgrigorian merged commit aa3dcf6 into main Mar 14, 2026
76 of 82 checks passed
@ndgrigorian ndgrigorian deleted the drop-tbb-threading branch March 14, 2026 10:14
ndgrigorian added a commit that referenced this pull request Mar 18, 2026
ndgrigorian added a commit that referenced this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants