[arrayfire] 03/06: Install unified backend to new libarrayfire-unified packages.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Dec 15 15:19:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit c03f6ca5e8d6cf95802367652cb81aff67195c28
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Dec 6 23:51:33 2015 +0000

    Install unified backend to new libarrayfire-unified packages.
---
 debian/control                                 | 63 ++++++++++++++++++++++++++
 debian/libarrayfire-unified-dev.install        |  2 +
 debian/libarrayfire-unified3.install           |  1 +
 debian/libarrayfire-unified3.lintian-overrides |  1 +
 debian/rules                                   | 10 +++-
 debian/tests/build-testsuite                   |  4 +-
 debian/tests/control                           |  3 +-
 7 files changed, 81 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 73a6cb2..372e3d1 100644
--- a/debian/control
+++ b/debian/control
@@ -188,3 +188,66 @@ Description: Debugging symbols for ArrayFire (OpenCL backend)
  .
  This package provides the debugging symbols for the OpenCL backend of the
  ArrayFire library.
+
+Package: libarrayfire-unified-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: libarrayfire-dev,
+         libarrayfire-unified3 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Development files for ArrayFire (unified backend)
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides the development files for the unified backend of the
+ ArrayFire library.
+
+Package: libarrayfire-unified3
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: libarrayfire-cpu3 (= ${binary:Version}) | libarrayfire-opencl3 (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: High performance library for parallel computing (unified backend)
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides the unified backend of the ArrayFire library.
+
+Package: libarrayfire-unified3-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Multi-Arch: same
+Depends: libarrayfire-unified3 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Debugging symbols for ArrayFire (unified backend)
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides the debugging symbols for the unified backend of the
+ ArrayFire library.
diff --git a/debian/libarrayfire-unified-dev.install b/debian/libarrayfire-unified-dev.install
new file mode 100644
index 0000000..ebe2453
--- /dev/null
+++ b/debian/libarrayfire-unified-dev.install
@@ -0,0 +1,2 @@
+usr/lib/*/libaf.so
+usr/lib/*/cmake/*/*Unified*.cmake
diff --git a/debian/libarrayfire-unified3.install b/debian/libarrayfire-unified3.install
new file mode 100644
index 0000000..efb4ef6
--- /dev/null
+++ b/debian/libarrayfire-unified3.install
@@ -0,0 +1 @@
+usr/lib/*/libaf.so.*
diff --git a/debian/libarrayfire-unified3.lintian-overrides b/debian/libarrayfire-unified3.lintian-overrides
new file mode 100644
index 0000000..4417a2d
--- /dev/null
+++ b/debian/libarrayfire-unified3.lintian-overrides
@@ -0,0 +1 @@
+libarrayfire-unified3: package-name-doesnt-match-sonames libaf3
diff --git a/debian/rules b/debian/rules
index bddabc0..7b3c551 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ CMAKE_BUILD_OPTIONS = \
 	-DBUILD_GRAPHICS=OFF \
 	-DBUILD_NONFREE=OFF \
 	-DBUILD_OPENCL=ON \
-	-DBUILD_UNIFIED=OFF \
+	-DBUILD_UNIFIED=ON \
 	-DUSE_SYSTEM_BOOST_COMPUTE=ON \
 	-DUSE_SYSTEM_CLBLAS=ON \
 	-DUSE_SYSTEM_CLFFT=ON \
@@ -63,6 +63,12 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	cd $(BUILDDIR) && \
 	CTEST_OUTPUT_ON_FAILURE=1 \
 	ctest --force-new-ctest-process -R "cpu" -E "$(CTEST_EXCLUDE_REGEX)"
+	# NOTE: The testsuite for the unified backend is run on the CPU backend only.
+	# Change the name regex to libaf*.so* to run on all backends.
+	cd $(BUILDDIR) && \
+	LD_LIBRARY_PATH=$(shell find $(BUILDDIR) -type f -name "libafcpu.so*" -exec dirname {} \;) \
+	CTEST_OUTPUT_ON_FAILURE=1 \
+	ctest --force-new-ctest-process -R "unified" -E "$(CTEST_EXCLUDE_REGEX)"
 endif
 
 override_dh_install-indep:
@@ -79,3 +85,5 @@ override_dh_strip-arch:
 		--dbg-package=libarrayfire-cpu3-dbg
 	dh_strip --package=libarrayfire-opencl3 \
 		--dbg-package=libarrayfire-opencl3-dbg
+	dh_strip --package=libarrayfire-unified3 \
+		--dbg-package=libarrayfire-unified3-dbg
diff --git a/debian/tests/build-testsuite b/debian/tests/build-testsuite
index 5e68b0c..c71139c 100755
--- a/debian/tests/build-testsuite
+++ b/debian/tests/build-testsuite
@@ -21,4 +21,6 @@ make
 echo "build: OK"
 CTEST_OUTPUT_ON_FAILURE=1
 ctest --force-new-ctest-process -R "cpu" -E "large|dense"
-echo "run: OK"
+echo "run: OK (cpu)"
+ctest --force-new-ctest-process -R "unified" -E "large|dense"
+echo "run: OK (unified)"
diff --git a/debian/tests/control b/debian/tests/control
index d634c84..8abf883 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -3,7 +3,8 @@ Depends: build-essential,
          cmake,
          libarrayfire-cpu-dev,
          libarrayfire-doc,
-         libarrayfire-opencl-dev
+         libarrayfire-opencl-dev,
+         libarrayfire-unified-dev
 Restrictions: allow-stderr
 
 Tests: build-testsuite

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list