-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Python] About Thread Pool #187
Comments
Hi @luojw-dwr, This is a good question. We currently do not have any interface function to destruct the internal thread pool of Is there any concern that you have if these threads are not released in your application? Best, |
Hi @kittobi1992 Thanks for your time and reply. I am using As a workaround, I may separate the partitioning part of my program to a standalone process. But it would be cool if the thread pool can be temporarily destructed, and later on Thank you again for your warm reply. |
Hi @luojw-dwr, Just found out that it is possible to terminate the TBB worker threads: I will try to integrate it by the end of the week. Best, |
Opened a PR that allows terminating the TBB thread pool via a library function. However, our CI is currently not working with the change since it requires oneTBB 2021.6 but our Ubuntu machines are running on 2021.5. I keep you updated but you can already use the branch for testing. |
edit: resolved. Hi @kittobi1992 edit: The behavior is observed with the latest tbb. Trying downloaded TBB.
With latest TBB (2021.13)With the latest TBB (2021.13), With downloaded TBB (2021.7)With the downloaded TBB (2021.7),
Following are two minimal examples:
and one longer example:
with
-2: Ubuntu 24.04, x86_64
|
Hi @kittobi1992 Would please share your compilers and dependency versions? Especially compiler and |
Hi @kittobi1992 I am trying other methods, hope that I will get a good message to report. edit: refer to the following comment. |
Hi @kittobi1992
rather than:
(notice the missing Good news: After the fix,
Thank you for your time, effort and patience. |
Hi @luojw-dwr, Also good to hear that it is working for you. Best, |
Using the python interface, how can I release the threads allocated by
mtkahypar.initializeThreadPool(...)
?The text was updated successfully, but these errors were encountered: