diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-10-08 02:35:11 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2020-10-08 19:47:41 +0000 |
commit | cc985769b1e45e146138bcc09aa37db82bc6c79d (patch) | |
tree | 11698a0a13b2eeb9ce232f64ecd31a9696f45f4a | |
parent | sci-libs/aocl-sparse: amd optimized sparse BLAS lib (diff) | |
download | sci-cc985769.tar.gz sci-cc985769.tar.bz2 sci-cc985769.zip |
sci-libs/libflame-amd: fast dla computation library
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
-rw-r--r-- | sci-libs/libflame-amd/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/libflame-amd/libflame-amd-2.2.ebuild | 57 | ||||
-rw-r--r-- | sci-libs/libflame-amd/libflame-amd-9999.ebuild | 57 | ||||
-rw-r--r-- | sci-libs/libflame-amd/metadata.xml | 19 |
4 files changed, 134 insertions, 0 deletions
diff --git a/sci-libs/libflame-amd/Manifest b/sci-libs/libflame-amd/Manifest new file mode 100644 index 000000000..6da475e97 --- /dev/null +++ b/sci-libs/libflame-amd/Manifest @@ -0,0 +1 @@ +DIST libflame-amd-2.2.tar.gz 28327573 BLAKE2B a53bef8c08bfb5ca14c145ac9ae11e6f41f9d0ef2755cab2b69df6103b2164a6786bb2e3e709faf7a11cad2b4a58310082637c6e5516a987bb65cb599837bfff SHA512 c68a9a1e37eac649d898f25bd5f4d89abecd3fdb8ff9c9678d4d2c0761660322f270f4508f93511f3db75ef074531a1c9824cc81ed88cfcec82bc9513d274ec0 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>gentoo@aisha.cc</email> + <name>Aisha Tammy</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</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> |