Replies: 2 comments 6 replies
-
You can only set thread to 1, there is no separate sequential library for oneDAL. https://uxlfoundation.github.io/oneDAL/daal/services/managing-computational-environment.html you can set it with library API or by global controls in TBB |
Beta Was this translation helpful? Give feedback.
-
@mike-jn can you share more details on your usecase? How you train your models? would be happy to talk in email/meeting if you prefer not to share publicly. with setting to 1 we would create single thread. The only difference from true "sequential" library is that we still would initialize threading layer which might bring some overhead. As for MKL - we do control over it's usage and it shouldn't thread more than setting at oneDAL level. In tree based algos we use RNG portion from MKL @Vika-F can comment more on threading layer |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to disable threading completely since my application runs in single-threaded mode, pinned to a single core. Basically, I want the
algorithm.compute()
function to run in the caller thread and not dispatch work to any other thread.I understand that MKL, for example, has a sequential mode library that is made specifically for usecases like this, see: https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2025-0/linking-with-threading-libraries.html
How can I achieve the same with oneDAL/DAAL?
Thanks!
cc @napetrov
Beta Was this translation helpful? Give feedback.
All reactions