cv::setNumThreads() (Bug #2064)


Added by Gary Bradski over 12 years ago. Updated about 12 years ago.


Status:Done Start date:2012-06-18
Priority:Normal Due date:
Assignee:Daniil Osokin % Done:

0%

Category:documentation
Target version:2.4.4 Estimated time:0.05 hour
Affected version:branch '2.4' Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/401

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

Revision 5f32e0e2
Added by Daniil Osokin about 12 years ago

Rewrote doc for set-get number of threads functionality with support new frameworks (bug #2064)

Revision 648faccc
Added by Roman Donchenko about 11 years ago

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'

Updated by Andrey Kamaev about 12 years ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Also available in: Atom PDF