1 |
jsbronder 13/07/01 23:28:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hpl-2.0-r3.ebuild |
5 |
Removed: hpl-2.0-r2.ebuild hpl-2.0-r1.ebuild |
6 |
Log: |
7 |
Respect CFLAGS (#452984). Remove old. |
8 |
|
9 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9) |
10 |
|
11 |
Revision Changes Path |
12 |
1.20 sys-cluster/hpl/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpl/ChangeLog?rev=1.20&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpl/ChangeLog?rev=1.20&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpl/ChangeLog?r1=1.19&r2=1.20 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/hpl/ChangeLog,v |
21 |
retrieving revision 1.19 |
22 |
retrieving revision 1.20 |
23 |
diff -u -r1.19 -r1.20 |
24 |
--- ChangeLog 27 Feb 2013 15:57:37 -0000 1.19 |
25 |
+++ ChangeLog 1 Jul 2013 23:28:25 -0000 1.20 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-cluster/hpl |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/hpl/ChangeLog,v 1.19 2013/02/27 15:57:37 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/hpl/ChangeLog,v 1.20 2013/07/01 23:28:25 jsbronder Exp $ |
31 |
+ |
32 |
+*hpl-2.0-r3 (01 Jul 2013) |
33 |
+ |
34 |
+ 01 Jul 2013; Justin Bronder <jsbronder@g.o> -hpl-2.0-r1.ebuild, |
35 |
+ -hpl-2.0-r2.ebuild, +hpl-2.0-r3.ebuild: |
36 |
+ Respect CFLAGS (#452984). Remove old. |
37 |
|
38 |
*hpl-2.0-r2 (27 Feb 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-cluster/hpl/hpl-2.0-r3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpl/hpl-2.0-r3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpl/hpl-2.0-r3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: hpl-2.0-r3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/hpl/hpl-2.0-r3.ebuild,v 1.1 2013/07/01 23:28:25 jsbronder Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit eutils multilib |
57 |
|
58 |
DESCRIPTION="A Portable Implementation of the High-Performance Linpack Benchmark for Distributed-Memory Computers" |
59 |
HOMEPAGE="http://www.netlib.org/benchmark/hpl/" |
60 |
SRC_URI="http://www.netlib.org/benchmark/hpl/hpl-${PV}.tar.gz" |
61 |
|
62 |
SLOT="0" |
63 |
LICENSE="HPL" |
64 |
KEYWORDS="~x86 ~amd64" |
65 |
IUSE="doc" |
66 |
|
67 |
RDEPEND=" |
68 |
virtual/blas |
69 |
virtual/lapack |
70 |
virtual/mpi" |
71 |
DEPEND="${DEPEND} |
72 |
virtual/pkgconfig" |
73 |
|
74 |
src_prepare() { |
75 |
local a="" |
76 |
local locallib="${EPREFIX}/usr/$(get_libdir)/lib" |
77 |
local localblas="$(for i in $($(tc-getPKG_CONFIG) --libs-only-l blas lapack);do a="${a} ${i/-l/${locallib}}.so "; done; echo ${a})" |
78 |
|
79 |
cp setup/Make.Linux_PII_FBLAS Make.gentoo_hpl_fblas_x86 || die |
80 |
sed -i \ |
81 |
-e "/^TOPdir/s,= .*,= ${S}," \ |
82 |
-e '/^HPL_OPTS\>/s,=,= -DHPL_DETAILED_TIMING -DHPL_COPY_L,' \ |
83 |
-e '/^ARCH\>/s,= .*,= gentoo_hpl_fblas_x86,' \ |
84 |
-e '/^MPdir\>/s,= .*,=,' \ |
85 |
-e '/^MPlib\>/s,= .*,=,' \ |
86 |
-e "/^LAlib\>/s,= .*,= ${localblas}," \ |
87 |
-e '/^LINKER\>/s,= .*,= mpicc,' \ |
88 |
-e '/^CC\>/s,= .*,= mpicc,' \ |
89 |
-e '/^CCFLAGS\>/s|= .*|= $(HPL_DEFS) ${CFLAGS}|' \ |
90 |
-e "/^LINKFLAGS\>/s|= .*|= ${LDFLAGS}|" \ |
91 |
Make.gentoo_hpl_fblas_x86 || die |
92 |
} |
93 |
|
94 |
src_compile() { |
95 |
# parallel make failure bug #321539 |
96 |
HOME=${WORKDIR} emake -j1 arch=gentoo_hpl_fblas_x86 |
97 |
} |
98 |
|
99 |
src_install() { |
100 |
dobin bin/gentoo_hpl_fblas_x86/xhpl |
101 |
dolib lib/gentoo_hpl_fblas_x86/libhpl.a |
102 |
dodoc INSTALL BUGS COPYRIGHT HISTORY README TUNING \ |
103 |
bin/gentoo_hpl_fblas_x86/HPL.dat |
104 |
doman man/man3/*.3 |
105 |
if use doc; then |
106 |
dohtml -r www/* |
107 |
fi |
108 |
} |
109 |
|
110 |
pkg_postinst() { |
111 |
einfo "Remember to copy /usr/share/hpl/HPL.dat to your working directory" |
112 |
einfo "before running xhpl. Typically one may run hpl by executing:" |
113 |
einfo "\"mpiexec -np 4 /usr/bin/xhpl\"" |
114 |
einfo "where -np specifies the number of processes." |
115 |
} |