Skip to content

Provide functions to terminate the TBB thread pool in library interfaces#191

Open
kittobi1992 wants to merge 3 commits intomasterfrom
thread_pool_termination
Open

Provide functions to terminate the TBB thread pool in library interfaces#191
kittobi1992 wants to merge 3 commits intomasterfrom
thread_pool_termination

Conversation

@kittobi1992
Copy link
Member

@kittobi1992 kittobi1992 commented Oct 2, 2024

This PR adds support to terminate the TBB thread pool via interface functions in the C and Python interface (resolves issue #187).

Note the change uses oneapi::tbb::task_scheduler_handle which is fully functional since oneTBB 2021.6. It seems that our CI uses oneTBB 2021.5 which needs to be fixed before merging.

@N-Maas
Copy link
Collaborator

N-Maas commented Oct 2, 2024

Seems the TBB version in the CI doesn't have finalize yet. Ubuntu 22 has only v2021.5. Maybe we can gate it behind a compile flag?

@kittobi1992
Copy link
Member Author

Seems the TBB version in the CI doesn't have finalize yet. Ubuntu 22 has only v2021.5. Maybe we can gate it behind a compile flag?

I think this is the only option. At least the MacOS CI build has the newest version. We should also replace the Ubuntu 20 build with an Ubuntu 24 CI build.

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