Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/libflame-amd/
Date: Thu, 08 Oct 2020 19:48:11
Message-Id: 1602186461.cc985769b1e45e146138bcc09aa37db82bc6c79d.epsilon-0@gentoo
1 commit: cc985769b1e45e146138bcc09aa37db82bc6c79d
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Oct 8 02:35:11 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Oct 8 19:47:41 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=cc985769
7
8 sci-libs/libflame-amd: fast dla computation library
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 sci-libs/libflame-amd/libflame-amd-2.2.ebuild | 57 ++++++++++++++++++++++++++
14 sci-libs/libflame-amd/libflame-amd-9999.ebuild | 57 ++++++++++++++++++++++++++
15 sci-libs/libflame-amd/metadata.xml | 19 +++++++++
16 3 files changed, 133 insertions(+)
17
18 diff --git a/sci-libs/libflame-amd/libflame-amd-2.2.ebuild b/sci-libs/libflame-amd/libflame-amd-2.2.ebuild
19 new file mode 100644
20 index 000000000..26bdb2e47
21 --- /dev/null
22 +++ b/sci-libs/libflame-amd/libflame-amd-2.2.ebuild
23 @@ -0,0 +1,57 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit autotools fortran-2
30 +FORTRAN_NEED_OPENMP=1
31 +
32 +DESCRIPTION="AMD optimized high-performance object-based library for DLA computations"
33 +HOMEPAGE="https://developer.amd.com/amd-aocl/"
34 +
35 +if [[ ${PV} == 9999 ]]; then
36 + inherit git-r3
37 + EGIT_REPO_URI="https://github.com/amd/libflame"
38 +else
39 + SRC_URI="https://github.com/amd/libflame/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 + S="${WORKDIR}"/libflame-"${PV}"
41 + KEYWORDS="~amd64"
42 +fi
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +
47 +CPU_FLAGS=( sse3 )
48 +IUSE_CPU_FLAGS_X86="${CPU_FLAGS[@]/#/cpu_flags_x86_}"
49 +IUSE="scc static-libs supermatrix ${IUSE_CPU_FLAGS_X86[@]}"
50 +
51 +DEPEND="virtual/cblas"
52 +RDEPEND="${DEPEND}
53 + !sci-libs/libflame
54 +"
55 +BDEPEND="dev-vcs/git"
56 +
57 +src_configure() {
58 + local myconf=(
59 + --disable-optimizations
60 + --enable-multithreading=openmp
61 + --enable-verbose-make-output
62 + --enable-lapack2flame
63 + --enable-cblas-interfaces
64 + --enable-max-arg-list-hack
65 + --enable-dynamic-build
66 + --enable-vector-intrinsics=$(usex cpu_flags_x86_sse3 sse none)
67 + $(use_enable static-libs static-build)
68 + $(use_enable scc)
69 + $(use_enable supermatrix)
70 + )
71 + econf "${myconf[@]}"
72 +}
73 +
74 +src_compile() {
75 + default
76 +}
77 +
78 +src_install() {
79 + emake -j1 DESTDIR="${D}" install
80 +}
81
82 diff --git a/sci-libs/libflame-amd/libflame-amd-9999.ebuild b/sci-libs/libflame-amd/libflame-amd-9999.ebuild
83 new file mode 100644
84 index 000000000..26bdb2e47
85 --- /dev/null
86 +++ b/sci-libs/libflame-amd/libflame-amd-9999.ebuild
87 @@ -0,0 +1,57 @@
88 +# Copyright 1999-2020 Gentoo Authors
89 +# Distributed under the terms of the GNU General Public License v2
90 +
91 +EAPI=7
92 +
93 +inherit autotools fortran-2
94 +FORTRAN_NEED_OPENMP=1
95 +
96 +DESCRIPTION="AMD optimized high-performance object-based library for DLA computations"
97 +HOMEPAGE="https://developer.amd.com/amd-aocl/"
98 +
99 +if [[ ${PV} == 9999 ]]; then
100 + inherit git-r3
101 + EGIT_REPO_URI="https://github.com/amd/libflame"
102 +else
103 + SRC_URI="https://github.com/amd/libflame/archive/${PV}.tar.gz -> ${P}.tar.gz"
104 + S="${WORKDIR}"/libflame-"${PV}"
105 + KEYWORDS="~amd64"
106 +fi
107 +
108 +LICENSE="BSD"
109 +SLOT="0"
110 +
111 +CPU_FLAGS=( sse3 )
112 +IUSE_CPU_FLAGS_X86="${CPU_FLAGS[@]/#/cpu_flags_x86_}"
113 +IUSE="scc static-libs supermatrix ${IUSE_CPU_FLAGS_X86[@]}"
114 +
115 +DEPEND="virtual/cblas"
116 +RDEPEND="${DEPEND}
117 + !sci-libs/libflame
118 +"
119 +BDEPEND="dev-vcs/git"
120 +
121 +src_configure() {
122 + local myconf=(
123 + --disable-optimizations
124 + --enable-multithreading=openmp
125 + --enable-verbose-make-output
126 + --enable-lapack2flame
127 + --enable-cblas-interfaces
128 + --enable-max-arg-list-hack
129 + --enable-dynamic-build
130 + --enable-vector-intrinsics=$(usex cpu_flags_x86_sse3 sse none)
131 + $(use_enable static-libs static-build)
132 + $(use_enable scc)
133 + $(use_enable supermatrix)
134 + )
135 + econf "${myconf[@]}"
136 +}
137 +
138 +src_compile() {
139 + default
140 +}
141 +
142 +src_install() {
143 + emake -j1 DESTDIR="${D}" install
144 +}
145
146 diff --git a/sci-libs/libflame-amd/metadata.xml b/sci-libs/libflame-amd/metadata.xml
147 new file mode 100644
148 index 000000000..36ca842dd
149 --- /dev/null
150 +++ b/sci-libs/libflame-amd/metadata.xml
151 @@ -0,0 +1,19 @@
152 +<?xml version="1.0" encoding="UTF-8"?>
153 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
154 +<pkgmetadata>
155 + <maintainer type="person">
156 + <email>gentoo@×××××.cc</email>
157 + <name>Aisha Tammy</name>
158 + </maintainer>
159 + <maintainer type="project">
160 + <email>sci@g.o</email>
161 + <name>Gentoo Science Project</name>
162 + </maintainer>
163 + <upstream>
164 + <remote-id type="github">amd/libflame</remote-id>
165 + </upstream>
166 + <use>
167 + <flag name="scc">Enable code that takes advantage of the SCC multicore architecture, recommended to use supermatrix if scc is enabled.</flag>
168 + <flag name="supermatrix">Enable Ernie Chan's dependency-aware task scheduling and parallel execution system.</flag>
169 + </use>
170 +</pkgmetadata>