Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/clblast/
Date: Fri, 04 Mar 2022 17:38:30
Message-Id: 1646415493.870b2648439ad1b6414148d2225d933fa1466ad6.andrewammerlaan@gentoo
1 commit: 870b2648439ad1b6414148d2225d933fa1466ad6
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 4 14:15:21 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 4 17:38:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=870b2648
7
8 sci-libs/clblast: add version 1.5.2
9
10 Closes: https://bugs.gentoo.org/834294
11 Bug: https://bugs.gentoo.org/711990
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 sci-libs/clblast/Manifest | 1 +
16 sci-libs/clblast/clblast-1.5.2.ebuild | 61 +++++++++++++++++++++++++++++++++++
17 sci-libs/clblast/metadata.xml | 6 ++++
18 3 files changed, 68 insertions(+)
19
20 diff --git a/sci-libs/clblast/Manifest b/sci-libs/clblast/Manifest
21 index 3dd579ca4a42..dde558544c12 100644
22 --- a/sci-libs/clblast/Manifest
23 +++ b/sci-libs/clblast/Manifest
24 @@ -1 +1,2 @@
25 DIST clblast-0.10.0.tar.gz 508763 BLAKE2B 9b0089963e41b0d0f193ec05d3ba31a2b8b1cb70a38fcbf2fb6240d96cfb81d566068a35a9e35014f84196edd4e622befac76d9ba5d49660eda8992be14d622e SHA512 da1fc659dd470c02c25be0a009b7f5e2333bc590715ac6b90e09e57a25d764479d7e4ecf398f17d0ac0e6bb2eaf24c09082c7f047fb7b3044f4a987e294494ee
26 +DIST clblast-1.5.2.tar.gz 419730 BLAKE2B 9954e39b490b75f3d989969260146ff9e9f5311865f13779e0ee8bc70578d6c51fd7c5e27af777a9d6c9703992d5acb164211aec39568f2f0ba1cf10db211b24 SHA512 6693704321bb7623a632ebfc71dcf07bbe4ba6c6f03a2ecf52bc10b401ae546bf82cdd3f6cc28aa9ea10f40dc7b2e86a6530f32cfbd522e24d4cf6a75c8c1100
27
28 diff --git a/sci-libs/clblast/clblast-1.5.2.ebuild b/sci-libs/clblast/clblast-1.5.2.ebuild
29 new file mode 100644
30 index 000000000000..59f05f82ded7
31 --- /dev/null
32 +++ b/sci-libs/clblast/clblast-1.5.2.ebuild
33 @@ -0,0 +1,61 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit cmake
40 +
41 +MYPN="CLBlast"
42 +
43 +DESCRIPTION="Tuned OpenCL BLAS"
44 +HOMEPAGE="https://github.com/CNugteren/CLBlast"
45 +SRC_URI="https://github.com/CNugteren/${MYPN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +S="${WORKDIR}/${MYPN}-${PV}"
47 +
48 +LICENSE="Apache-2.0"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +# Cuda is still beta, default to opencl
52 +IUSE="client cuda examples +opencl test"
53 +REQUIRED_USE="
54 + ^^ ( cuda opencl )
55 + test? ( client )
56 +"
57 +# Tests require write access to /dev/dri/renderD...
58 +RESTRICT="test"
59 +# RESTRICT="!test? ( test )"
60 +
61 +RDEPEND="
62 + cuda? ( dev-util/nvidia-cuda-toolkit:= )
63 + client? ( virtual/cblas )
64 + opencl? ( virtual/opencl )
65 +"
66 +
67 +DEPEND="${RDEPEND}"
68 +
69 +src_prepare() {
70 + # no forced optimisation, libdir
71 + sed -e 's/-O3//g' \
72 + -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/g' \
73 + -i CMakeLists.txt || die
74 + cmake_src_prepare
75 +}
76 +
77 +src_configure() {
78 + mycmakeargs+=(
79 + -DBUILD_SHARED_LIBS=ON
80 + -DSAMPLES="$(usex examples)"
81 + -DCLIENTS="$(usex client)"
82 + -DNETLIB="$(usex client)"
83 + -DTESTS="$(usex test)"
84 + -DOPENCL="$(usex opencl)"
85 + -DCUDA="$(usex cuda)"
86 + )
87 + cmake_src_configure
88 +}
89 +
90 +src_install() {
91 + cmake_src_install
92 + dodoc README.md ROADMAP.md CONTRIBUTING.md CHANGELOG
93 + dodoc -r doc
94 +}
95
96 diff --git a/sci-libs/clblast/metadata.xml b/sci-libs/clblast/metadata.xml
97 index e02c949bf653..8525f0a2541e 100644
98 --- a/sci-libs/clblast/metadata.xml
99 +++ b/sci-libs/clblast/metadata.xml
100 @@ -18,6 +18,12 @@
101 <flag name="client">
102 Enable compilation of the clients to test and compare performance with reference libraries
103 </flag>
104 + <flag name="cuda">
105 + Build with support for cuda instead of opencl (beta!)
106 + </flag>
107 + <flag name="opencl">
108 + Build with support for opencl
109 + </flag>
110 </use>
111 <upstream>
112 <remote-id type="github">CNugteren/CLBlast</remote-id>