commit:     cc985769b1e45e146138bcc09aa37db82bc6c79d
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Thu Oct  8 02:35:11 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Thu Oct  8 19:47:41 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=cc985769

sci-libs/libflame-amd: fast dla computation library

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 sci-libs/libflame-amd/libflame-amd-2.2.ebuild  | 57 ++++++++++++++++++++++++++
 sci-libs/libflame-amd/libflame-amd-9999.ebuild | 57 ++++++++++++++++++++++++++
 sci-libs/libflame-amd/metadata.xml             | 19 +++++++++
 3 files changed, 133 insertions(+)

diff --git a/sci-libs/libflame-amd/libflame-amd-2.2.ebuild 
b/sci-libs/libflame-amd/libflame-amd-2.2.ebuild
new file mode 100644
index 000000000..26bdb2e47
--- /dev/null
+++ b/sci-libs/libflame-amd/libflame-amd-2.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools fortran-2
+FORTRAN_NEED_OPENMP=1
+
+DESCRIPTION="AMD optimized high-performance object-based library for DLA 
computations"
+HOMEPAGE="https://developer.amd.com/amd-aocl/";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/amd/libflame";
+else
+       SRC_URI="https://github.com/amd/libflame/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}"/libflame-"${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+CPU_FLAGS=( sse3 )
+IUSE_CPU_FLAGS_X86="${CPU_FLAGS[@]/#/cpu_flags_x86_}"
+IUSE="scc static-libs supermatrix ${IUSE_CPU_FLAGS_X86[@]}"
+
+DEPEND="virtual/cblas"
+RDEPEND="${DEPEND}
+       !sci-libs/libflame
+"
+BDEPEND="dev-vcs/git"
+
+src_configure() {
+       local myconf=(
+               --disable-optimizations
+               --enable-multithreading=openmp
+               --enable-verbose-make-output
+               --enable-lapack2flame
+               --enable-cblas-interfaces
+               --enable-max-arg-list-hack
+               --enable-dynamic-build
+               --enable-vector-intrinsics=$(usex cpu_flags_x86_sse3 sse none)
+               $(use_enable static-libs static-build)
+               $(use_enable scc)
+               $(use_enable supermatrix)
+       )
+       econf "${myconf[@]}"
+}
+
+src_compile() {
+       default
+}
+
+src_install() {
+       emake -j1 DESTDIR="${D}" install
+}

diff --git a/sci-libs/libflame-amd/libflame-amd-9999.ebuild 
b/sci-libs/libflame-amd/libflame-amd-9999.ebuild
new file mode 100644
index 000000000..26bdb2e47
--- /dev/null
+++ b/sci-libs/libflame-amd/libflame-amd-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools fortran-2
+FORTRAN_NEED_OPENMP=1
+
+DESCRIPTION="AMD optimized high-performance object-based library for DLA 
computations"
+HOMEPAGE="https://developer.amd.com/amd-aocl/";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/amd/libflame";
+else
+       SRC_URI="https://github.com/amd/libflame/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}"/libflame-"${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+CPU_FLAGS=( sse3 )
+IUSE_CPU_FLAGS_X86="${CPU_FLAGS[@]/#/cpu_flags_x86_}"
+IUSE="scc static-libs supermatrix ${IUSE_CPU_FLAGS_X86[@]}"
+
+DEPEND="virtual/cblas"
+RDEPEND="${DEPEND}
+       !sci-libs/libflame
+"
+BDEPEND="dev-vcs/git"
+
+src_configure() {
+       local myconf=(
+               --disable-optimizations
+               --enable-multithreading=openmp
+               --enable-verbose-make-output
+               --enable-lapack2flame
+               --enable-cblas-interfaces
+               --enable-max-arg-list-hack
+               --enable-dynamic-build
+               --enable-vector-intrinsics=$(usex cpu_flags_x86_sse3 sse none)
+               $(use_enable static-libs static-build)
+               $(use_enable scc)
+               $(use_enable supermatrix)
+       )
+       econf "${myconf[@]}"
+}
+
+src_compile() {
+       default
+}
+
+src_install() {
+       emake -j1 DESTDIR="${D}" install
+}

diff --git a/sci-libs/libflame-amd/metadata.xml 
b/sci-libs/libflame-amd/metadata.xml
new file mode 100644
index 000000000..36ca842dd
--- /dev/null
+++ b/sci-libs/libflame-amd/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Aisha Tammy</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">amd/libflame</remote-id>
+       </upstream>
+       <use>
+               <flag name="scc">Enable code that takes advantage of the SCC 
multicore architecture, recommended to use supermatrix if scc is enabled.</flag>
+               <flag name="supermatrix">Enable Ernie Chan's dependency-aware 
task scheduling and parallel execution system.</flag>
+       </use>
+</pkgmetadata>

Reply via email to