From 5151b7b35959e46d08f5f73dcda1c33dd8c88bd3 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Tue, 22 Dec 2020 15:40:27 +0100 Subject: Initial packaging. --- debian/changelog | 5 ++--- debian/clblast-tests.install | 1 + debian/clblast-utils.install | 1 + debian/control | 18 +++++++++++++++++- debian/copyright | 6 ++++++ debian/libclblast-dev.install | 5 +++++ debian/libclblast1.install | 1 + debian/libclblast1.shlibs | 1 + debian/rules | 23 ++++++++++++++++++++++- 9 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 debian/clblast-tests.install create mode 100644 debian/clblast-utils.install create mode 100644 debian/libclblast-dev.install create mode 100644 debian/libclblast1.install create mode 100644 debian/libclblast1.shlibs diff --git a/debian/changelog b/debian/changelog index d40d8897..9677114c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,5 @@ -clblast (0.1-1) unstable; urgency=medium +clblast (1.5.1-1) UNRELEASED; urgency=medium * Initial release (Closes: #XXXXXX) - -- Gard Spreemann Tue, 22 Dec 2020 15:11:05 +0100 - \ No newline at end of file + -- Gard Spreemann Tue, 22 Dec 2020 17:22:05 +0100 diff --git a/debian/clblast-tests.install b/debian/clblast-tests.install new file mode 100644 index 00000000..ca452daa --- /dev/null +++ b/debian/clblast-tests.install @@ -0,0 +1 @@ +usr/bin/clblast_test_* \ No newline at end of file diff --git a/debian/clblast-utils.install b/debian/clblast-utils.install new file mode 100644 index 00000000..36e40000 --- /dev/null +++ b/debian/clblast-utils.install @@ -0,0 +1 @@ +usr/bin/clblast_tuner_* diff --git a/debian/control b/debian/control index 80c64b18..473f9443 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Priority: optional Standards-Version: 4.5.1 Build-Depends: cmake, debhelper-compat (= 13), + libblas-dev, ocl-icd-opencl-dev | opencl-dev Rules-Requires-Root: no Homepage: https://cnugteren.github.io/clblast/clblast.html @@ -44,6 +45,21 @@ Description: Tuned OpenCL BLAS library (development files) . This package provides the static library and headers. +Package: clblast-tests +Section: math +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for CLBlast + CLBlast is a modern, lightweight, performant and tunable OpenCL BLAS + library written in C++11. It is designed to leverage the full + performance potential of a wide variety of OpenCL devices from + different vendors, including desktop and laptop GPUs, embedded GPUs, + and other accelerators. CLBlast implements BLAS routines: basic + linear algebra subprograms operating on vectors and matrices. + . + This package provides tests and benchmarks against other BLAS + implementations. + Package: clblast-utils Section: math Architecture: any @@ -57,4 +73,4 @@ Description: Utilities for CLBlast linear algebra subprograms operating on vectors and matrices. . This package provides utilities for tuning the implementation for - specific hardware. \ No newline at end of file + specific hardware. diff --git a/debian/copyright b/debian/copyright index 549996e1..b3ddf656 100644 --- a/debian/copyright +++ b/debian/copyright @@ -9,3 +9,9 @@ License: Apache-2.0 Files: debian/* Copyright: 2020 Gard Spreemann License: Apache-2.0 + +License: Apache-2.0 + The project is licensed under Apache Version 2.0. + . + On Debian systems, the full text of the license can be found in the file + "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/libclblast-dev.install b/debian/libclblast-dev.install new file mode 100644 index 00000000..c97725e0 --- /dev/null +++ b/debian/libclblast-dev.install @@ -0,0 +1,5 @@ +usr/lib/${DEB_HOST_MULTIARCH}/libclblast.so +usr/lib/${DEB_HOST_MULTIARCH}/libclblast.a +usr/include +usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig +usr/lib/${DEB_HOST_MULTIARCH}/cmake diff --git a/debian/libclblast1.install b/debian/libclblast1.install new file mode 100644 index 00000000..d1b958c4 --- /dev/null +++ b/debian/libclblast1.install @@ -0,0 +1 @@ +usr/lib/${DEB_HOST_MULTIARCH}/libclblast.so.* \ No newline at end of file diff --git a/debian/libclblast1.shlibs b/debian/libclblast1.shlibs new file mode 100644 index 00000000..5a98f456 --- /dev/null +++ b/debian/libclblast1.shlibs @@ -0,0 +1 @@ +libclblast 1 libclblast1 (>= 1.5.1) diff --git a/debian/rules b/debian/rules index 5f0b58f0..5e19087e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,27 @@ #!/usr/bin/make -f -#export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +FLAGS:=-DCUBLAS=false -DCUDA=false -DNETLIB=false -DOPENCL=true %: dh $@ + +override_dh_auto_configure: + dh_auto_configure --builddirectory=build-static -- -DBUILD_SHARED_LIBS=false -DTUNERS=false -DTESTS=false $(FLAGS) + dh_auto_configure --builddirectory=build -- -DBUILD_SHARED_LIBS=true -DTUNERS=true -DTESTS=true $(FLAGS) + +override_dh_auto_build: + dh_auto_build --builddirectory=build-static + dh_auto_build --builddirectory=build + +override_dh_auto_clean: + dh_auto_clean --builddirectory=build-static + dh_auto_clean --builddirectory=build + +override_dh_auto_install: + dh_auto_install --builddirectory=build-static + dh_auto_install --builddirectory=build + +override_dh_missing: + dh_missing --list-missing -- cgit v1.2.3