summaryrefslogtreecommitdiff
blob: 4c9d790ff4969215d017c0bffc346efc8057478b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/hpl/hpl-1.0.ebuild,v 1.3 2004/03/27 10:34:59 tantive Exp $

DESCRIPTION="HPL - 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.tgz"
LICENSE="HPL"
SLOT="0"
KEYWORDS="~x86"

DEPEND="sys-cluster/mpich
	app-sci/blas
	dev-libs/atlas"

src_compile() {
	cd ${WORKDIR}/hpl
	cp setup/Make.Linux_PII_CBLAS Make.gentoo_hpl_cblas_x86
	epatch ${FILESDIR}/Make.gentoo_hpl_cblas_x86.diff.bz2
	HOME=${WORKDIR} make arch=gentoo_hpl_cblas_x86
}

src_install() {
	cd ${WORKDIR}/hpl
	doman man/man3/*.3
	dodoc INSTALL BUGS COPYRIGHT HISTORY README TUNING
	dobin bin/gentoo_hpl_cblas_x86/*
	dohtml -r www/*
	dolib lib/gentoo_hpl_cblas_x86/libhpl.a
}

pkg_postinst() {
	einfo
	einfo "Run linpack by executing"
	einfo "\"cd /usr/bin\""
	einfo "\"mpirun -np 4 xhpl\""
	einfo "where -np specifies the number of processes."
}