Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support on Ubuntu. However when I run opencv_traincascade to train a classifier only one core is used. I've also checked whether libtbb2 is used (/proc/<procnum>/maps). Is there a way to enforce the usage of 2 or more cores?

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support on Ubuntu. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 is used (/proc/<procnum>/maps). (/proc/<opencv_traincascade procnum="">/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support (-DWITH_TBB=ON) on Ubuntu. Ubuntu, which currently ships with TBB 4.0. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 (really is 4.0) is used (/proc/<opencv_traincascade procnum="">/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support (-DWITH_TBB=ON) on Ubuntu, which currently ships with TBB 4.0. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 (really is 4.0) is used (/proc/<opencv_traincascade procnum="">/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support (-DWITH_TBB=ON) on Ubuntu, which currently ships with TBB 4.0. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 (really is 4.0) is used (/proc/<opencv_traincascade procnum="">/maps), (/proc/[opencv_traincascade process number]/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Enable Mutlithreading with TBB

I have compiled OpenCV-2.4.1 with TBB support (-DWITH_TBB=ON) on Ubuntu, which currently ships with TBB 4.0. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 (really is 4.0) is used (/proc/[opencv_traincascade process number]/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Update: As I can't comment directly on your answers, so i update my question.

  1. Thanks for your answers!
  2. @Daniil: I tried checking for HAVE_TBB in traincascade.cpp without success. However, checking my build i found cvconfig.h which actually defines HAVE_TBB. So i believe that the libraries are really build with TBB support. I also checked their symbol table with nm and tbb symbols are there.
  3. @Maria: Thats what i was afraid of. However this discussion states that there should be an improvement using TBB.?!
click to hide/show revision 7
No.7 Revision

Enable Mutlithreading with TBBMultithreading with TBB during cascade training

I have compiled OpenCV-2.4.1 with TBB support (-DWITH_TBB=ON) on Ubuntu, which currently ships with TBB 4.0. However when I run opencv_traincascade to train a classifier only one core is used. I've also explicitly checked whether libtbb2 (really is 4.0) is used (/proc/[opencv_traincascade process number]/maps), and it is used. I am using an AMD Athlon 64 X2 Dual Core 4200+ processor.

Is there a way to enforce the usage of 2 or more cores? Or is there a problem with TBB on AMD CPUs?

Update: As I can't comment directly on your answers, so i update my question.

  1. Thanks for your answers!
  2. @Daniil: I tried checking for HAVE_TBB in traincascade.cpp without success. However, checking my build i found cvconfig.h which actually defines HAVE_TBB. So i believe that the libraries are really build with TBB support. I also checked their symbol table with nm and tbb symbols are there.
  3. @Maria: Thats what i was afraid of. However this discussion states that there should be an improvement using TBB.?!