diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-cluster/hpl |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-cluster/hpl')
-rw-r--r-- | sys-cluster/hpl/Manifest | 5 | ||||
-rw-r--r-- | sys-cluster/hpl/hpl-2.0-r3.ebuild | 65 | ||||
-rw-r--r-- | sys-cluster/hpl/metadata.xml | 8 |
3 files changed, 78 insertions, 0 deletions
diff --git a/sys-cluster/hpl/Manifest b/sys-cluster/hpl/Manifest new file mode 100644 index 000000000000..e609aba6f27f --- /dev/null +++ b/sys-cluster/hpl/Manifest @@ -0,0 +1,5 @@ +DIST hpl-2.0.tar.gz 591087 SHA256 d8d118c310d34a5a2acf5a689270a9f7bea60245552d24af8641599651909bec SHA512 3aa76144526b01ec40d940cae50d47e480e2760a36d1e95bc6e431b216407db190946fc3d99a6a7caf7b61bcc76d805d28da3ef0b141ff467854e1cdf10bb274 WHIRLPOOL 79da0950089d8e7d6128a2af7a44de704c2666aeb74de08e9e0a06fc23f8c4d17da2ab5107b5f6a82ca073800ec2af4f003c7792ae84e1ec032d9572e78bc0b2 +EBUILD hpl-2.0-r3.ebuild 1870 SHA256 5210141cae10bd50184673a8c0734f49556e24f48a214ea15d0d4da65b73980f SHA512 397e2ebd6fd10089cc070dbd385fdb60364280e1c1447fab0022c300bb1d46ce9ab661582b7f4d2e16c2c3553006c8309112fed693c3cbf5f78c98afdd9dd6f3 WHIRLPOOL 0d19fb794ccce38cabf88a42921c7074ac6d550a4f5c1204992533059a5c470bb0aa13316f19b3f5ad1f3a6d3b263fb7de453732b39f844aae84986281815459 +MISC ChangeLog 2420 SHA256 320451c6a05378e8724b64ffb71025dd8e4074c68e2164492fad3790ab6a9eb9 SHA512 e6c0c79b6821b214dbe0f78a8b2e3cf53925dc7a30bde6dfcea52905fed0ea5e853cd47871dd1c472a71ecf08130f76dd10f29490b41e37b19610357cea7895d WHIRLPOOL f3af4aa7533c6f66c4e073afce4336ddad79e722ee0858deb7fd53bb4e3b09a217d3871d5ece10ef6c27670262f789a1b4e42a6635835ca749585660dac071be +MISC ChangeLog-2015 2877 SHA256 29cd80428af6c0c8afe050c55129012340c21d04b7840f37047a313a6803924a SHA512 46e6d320ec24bb7f5b8542c6f57a4e1ddaeec6d79e73b8e2f1ff8414a16b1c2d01872d00b01486f5a8072eccd57540824a200612a75e2f6d74499f8d5b4a60f9 WHIRLPOOL 19887f341c3439b2a5589ed4677fd506a039de9652382e672d4ef96f0c481f1f08375798bf0be626d24037176711dea9f30ad0858f6df7952f580ce4c8a915c2 +MISC metadata.xml 263 SHA256 0c67f68407c1153b709d094f4f7de7710f178662bb5912f1f025dbe2a842ed10 SHA512 6ec307d6a3827ce21f67f8565a79a13d2833215571c459f42f06b8dd9184e1a41fa06b1cce8b3cf3555f4f875d9e366dd34ee786b6881dc18fb7d0b2d5c2acd5 WHIRLPOOL 5951a5587420612364b1c9f51ae31a3aed0ca3ea83a26f8d6fd2a2860a6a5a46b2ad8ca0260b591ec88f7fde17ab78213acac7aeced15398992cbd2de579c82f diff --git a/sys-cluster/hpl/hpl-2.0-r3.ebuild b/sys-cluster/hpl/hpl-2.0-r3.ebuild new file mode 100644 index 000000000000..61cbba4afc7d --- /dev/null +++ b/sys-cluster/hpl/hpl-2.0-r3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils multilib + +DESCRIPTION="A Portable Implementation of the High-Performance Linpack Benchmark for Distributed-Memory Computers" +HOMEPAGE="http://www.netlib.org/benchmark/hpl/" +SRC_URI="http://www.netlib.org/benchmark/hpl/hpl-${PV}.tar.gz" + +SLOT="0" +LICENSE="HPL" +KEYWORDS="~x86 ~amd64" +IUSE="doc" + +RDEPEND=" + virtual/blas + virtual/lapack + virtual/mpi" +DEPEND="${DEPEND} + virtual/pkgconfig" + +src_prepare() { + local a="" + local locallib="${EPREFIX}/usr/$(get_libdir)/lib" + local localblas="$(for i in $($(tc-getPKG_CONFIG) --libs-only-l blas lapack);do a="${a} ${i/-l/${locallib}}.so "; done; echo ${a})" + + cp setup/Make.Linux_PII_FBLAS Make.gentoo_hpl_fblas_x86 || die + sed -i \ + -e "/^TOPdir/s,= .*,= ${S}," \ + -e '/^HPL_OPTS\>/s,=,= -DHPL_DETAILED_TIMING -DHPL_COPY_L,' \ + -e '/^ARCH\>/s,= .*,= gentoo_hpl_fblas_x86,' \ + -e '/^MPdir\>/s,= .*,=,' \ + -e '/^MPlib\>/s,= .*,=,' \ + -e "/^LAlib\>/s,= .*,= ${localblas}," \ + -e '/^LINKER\>/s,= .*,= mpicc,' \ + -e '/^CC\>/s,= .*,= mpicc,' \ + -e '/^CCFLAGS\>/s|= .*|= $(HPL_DEFS) ${CFLAGS}|' \ + -e "/^LINKFLAGS\>/s|= .*|= ${LDFLAGS}|" \ + Make.gentoo_hpl_fblas_x86 || die +} + +src_compile() { + # parallel make failure bug #321539 + HOME=${WORKDIR} emake -j1 arch=gentoo_hpl_fblas_x86 +} + +src_install() { + dobin bin/gentoo_hpl_fblas_x86/xhpl + dolib lib/gentoo_hpl_fblas_x86/libhpl.a + dodoc INSTALL BUGS COPYRIGHT HISTORY README TUNING \ + bin/gentoo_hpl_fblas_x86/HPL.dat + doman man/man3/*.3 + if use doc; then + dohtml -r www/* + fi +} + +pkg_postinst() { + einfo "Remember to copy /usr/share/hpl/HPL.dat to your working directory" + einfo "before running xhpl. Typically one may run hpl by executing:" + einfo "\"mpiexec -np 4 /usr/bin/xhpl\"" + einfo "where -np specifies the number of processes." +} diff --git a/sys-cluster/hpl/metadata.xml b/sys-cluster/hpl/metadata.xml new file mode 100644 index 000000000000..f3834ba82253 --- /dev/null +++ b/sys-cluster/hpl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cluster@gentoo.org</email> + <name>Gentoo Cluster Project</name> + </maintainer> +</pkgmetadata> |