[packages/opencv] - added OpenCL support
qboosh
qboosh at pld-linux.org
Fri Feb 15 19:32:20 CET 2013
commit 8d5385eb7dee3da41c23f4afa3efa53b3f7a568e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Feb 15 19:32:20 2013 +0100
- added OpenCL support
opencv.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/opencv.spec b/opencv.spec
index d32f301..523c78c 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -1,7 +1,7 @@
#
# TODO:
-# - OpenCL
# - Smartek GigEVisionSDK (http://www.smartekvision.com/ ?)
+# - finish AMD OpenCL routines support
# - CUDA support (on bcond)
# - ipp (libippi): http://software.intel.com/en-us/articles/intel-ipp/ (proprietary)
#
@@ -10,9 +10,12 @@
%bcond_with tbb # Threading Building Blocks support (everywhere)
%bcond_with sse # use SSE instructions
%bcond_with sse2 # use SSE2 instructions
+%bcond_without opencl # OpenCL support
+%bcond_with opencl_amdblas # AMD OpenCL BLAS routines
+%bcond_with opencl_amdfft # AMD OpenCL FFT routines
+%bcond_without opengl # OpenGL support
# - highgui options:
%bcond_without gstreamer # GStreamer support in highgui
-%bcond_without opengl # OpenGL support
%bcond_with openni # OpenNI (Natural Interaction) support in highgui
%bcond_with pvapi # PvAPI (AVT GigE cameras) support in highgui (proprietary)
%bcond_with qt # Qt backend instead of GTK+ in highgui
@@ -49,6 +52,7 @@ Patch4: %{name}-gcc.patch
Patch5: %{name}-ximea.patch
URL: http://opencv.willowgarage.com/
%{?with_pvapi:BuildRequires: AVT_GigE_SDK-devel}
+%{?with_opencl:BuildRequires: OpenCL-devel}
BuildRequires: OpenEXR-devel
%{?with_opengl:BuildRequires: OpenGL-devel}
%{?with_opengl:BuildRequires: OpenGL-GLU-devel}
@@ -175,6 +179,9 @@ cd build
-DBUILD_NEW_PYTHON_SUPPORT=ON \
-DUSE_O3=OFF \
%{!?with_gstreamer:-DWITH_GSTREAMER=OFF} \
+ %{?with_opencl:-DWITH_OPENCL=ON} \
+ %{?with_opencl_amdblas:-DWITH_OPENCLAMDBLAS=ON} \
+ %{?with_opencl_amdfft:-DWITH_OPENCLAMDFFT=ON} \
%{?with_opengl:-DWITH_OPENGL=ON} \
%{?with_openni:-DWITH_OPENNI=ON} \
%{?with_pvapi:-DPVAPI_LIBRARY=%{_libdir}/libPvAPI.so}%{!?with_pvapi:-DWITH_PVAPI=OFF} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opencv.git/commitdiff/8d5385eb7dee3da41c23f4afa3efa53b3f7a568e
More information about the pld-cvs-commit
mailing list