Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272325 - Missing support for openmp in media-libs/opencv
Summary: Missing support for openmp in media-libs/opencv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 289258
Blocks:
  Show dependency tree
 
Reported: 2009-06-02 23:47 UTC by Radoslaw Szkodzinski
Modified: 2009-10-16 15:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Reenable configure option (opencv-1.0.0-openmp-reenable.patch,779 bytes, patch)
2009-06-02 23:54 UTC, Radoslaw Szkodzinski
Details | Diff
Imported fix from Debian (opencv-1.0.0-openmp-fix.patch,2.50 KB, patch)
2009-06-02 23:55 UTC, Radoslaw Szkodzinski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2009-06-02 23:47:04 UTC
OpenCV is missing OpenMP support in Gentoo, which cripples the library on multicore and SMP systems for certain use cases (esp. cpu-intensive Haar classifier training)

Debian has prerequisite fixes to enable building opencv with openmp support.
http://packages.debian.org/search?keywords=libcv1

And probably more, so importing the rest would be also nice.

Requires gcc 4.2.1 or newer and minor ebuild and configure.in modification.
(adding -fopenmp to CFLAGS and reenabling --with-openmp option)

I might provide the relevant patch later.
Comment 1 Radoslaw Szkodzinski 2009-06-02 23:54:26 UTC
Created attachment 193336 [details, diff]
Reenable configure option
Comment 2 Radoslaw Szkodzinski 2009-06-02 23:55:08 UTC
Created attachment 193338 [details, diff]
Imported fix from Debian
Comment 3 Stephan Friedrichs 2009-08-24 15:13:36 UTC
Wouldn't it make sense to introduce a useflag for that? AFAIK there is quite a number of ebuilds with an openmp useflag.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 00:00:35 UTC
There's USE openmp for OpenCV 2.0.0 in bug 289258.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 15:02:05 UTC
Should be fixed with 2.0.0. In portage.