cv::setNumThreads() (Bug #2064)
Description
The documentation says that the default number of threads is equal to the number of processors. I believe that it is actually equal to the number of logical processors. Therefor, if you had 4 cores each with hyperthreading enabled, the default number of threads would be 8.
Associated revisions
Rewrote doc for set-get number of threads functionality with support new frameworks (bug #2064)
Merge pull request #2064 from dpen2000:patch-2
History
Updated by Vadim Pisarevsky over 12 years ago
unfortunately, right now OpenCV uses TBB and (until recently?) this library does not allow to explicitly specify the number of threads to use. Therefore, setNumThreads() right now has no any effect. Let's try to do something with it by the next update
- Target version changed from 2.4.2 to 2.4.3
- Assignee set to Vadim Pisarevsky
Updated by Andrey Kamaev over 12 years ago
`setNumThreads` should work now for the majority of supported threading frameworks. But documentation really needs update.
- Priority changed from Low to Normal
- Target version changed from 2.4.3 to 3.0
Updated by Andrey Kamaev about 12 years ago
- Affected version set to 2.4.3
- Target version deleted (
3.0) - Assignee deleted (
Vadim Pisarevsky)
Updated by Daniil Osokin about 12 years ago
- Assignee set to Daniil Osokin
Updated by Daniil Osokin about 12 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/363
Updated by Daniil Osokin about 12 years ago
- Pull request changed from https://github.com/Itseez/opencv/pull/363 to https://github.com/Itseez/opencv/pull/401
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4
- Affected version changed from 2.4.3 to branch '2.4'