RcppCore / RcppParallel

High-level functions for parallel programming with Rcpp
http://rcppcore.github.io/RcppParallel/
171 stars 58 forks source link

RcppParallel with TBB not releasing threads #181

Open ppanko opened 2 years ago

ppanko commented 2 years ago

For example, running the distance matrix example in the RcppParallel gallery with TBB (but not tinythread) as the backend results in unreleased threads after the program finishes. Tested on both macOS and Linux platforms -- I am assuming this is broadly replicable, but if not, am happy to provide specifics.

Is this behavior intentional and if so, is there an accepted way to release the threads?