Lines 8-43
MAINTAINER= oliver@FreeBSD.org
Link Here
|
8 |
COMMENT= High Performance Computing Linpack Benchmark |
8 |
COMMENT= High Performance Computing Linpack Benchmark |
9 |
WWW= https://www.netlib.org/benchmark/hpl/ |
9 |
WWW= https://www.netlib.org/benchmark/hpl/ |
10 |
|
10 |
|
11 |
LIB_DEPENDS= libblas.so:math/blas \ |
11 |
LICENSE= BSD4CLAUSE |
12 |
libmpich.so:net/mpich |
12 |
LICENSE_FILE= ${WRKSRC}/www/copyright.html |
13 |
|
13 |
|
14 |
USES= fortran |
14 |
USES= fortran |
15 |
USE_LDCONFIG= yes |
|
|
16 |
HPL_ARCH?= FreeBSD_PIV_CBLAS |
15 |
HPL_ARCH?= FreeBSD_PIV_CBLAS |
17 |
MAKE_ARGS= arch=${HPL_ARCH} |
16 |
MAKE_ARGS= arch=${HPL_ARCH} |
18 |
ALL_TARGET= build |
17 |
ALL_TARGET= build |
19 |
|
18 |
|
20 |
OPTIONS_DEFINE= DOCS |
19 |
OPTIONS_DEFINE= DOCS |
|
|
20 |
OPTIONS_RADIO= BLAS MPI |
21 |
OPTIONS_RADIO_BLAS= ATLAS BLIS FLEXIBLAS NETLIB OPENBLAS |
22 |
OPTIONS_RADIO_MPI= MPICH OPENMPI |
23 |
OPTIONS_DEFAULT= NETLIB MPICH |
24 |
BLIS_DESC= BLAS implementation from FLAME |
25 |
FLEXIBLAS_DESC= BLAS and LAPACK wrapper library |
21 |
|
26 |
|
22 |
post-patch: |
27 |
ATLAS_USES= blaslapack:atlas |
23 |
@${REINPLACE_CMD} -e 's|^TOPdir[ ]*=.*$$|TOPdir = ${WRKSRC}| ; \ |
28 |
BLIS_USES= blaslapack:blis |
|
|
29 |
FLEXIBLAS_USES= blaslapack:flexiblas |
30 |
NETLIB_USES= blaslapack:netlib |
31 |
OPENBLAS_USES= blaslapack:openblas |
32 |
|
33 |
MPICH_USES= mpi:mpich |
34 |
OPENMPI_USES= mpi:openmpi |
35 |
|
36 |
CFLAGS+= -fomit-frame-pointer -funroll-loops |
37 |
|
38 |
pre-configure: |
39 |
${REINPLACE_CMD} -e 's|^TOPdir[ ]*=.*$$|TOPdir = ${WRKSRC}| ; \ |
24 |
s|^MPdir[ ]*=.*$$|MPdir = ${LOCALBASE}| ; \ |
40 |
s|^MPdir[ ]*=.*$$|MPdir = ${LOCALBASE}| ; \ |
25 |
s|^LAdir[ ]*=.*$$|LAdir = ${LOCALBASE}| ; \ |
41 |
s|^LAdir[ ]*=.*$$|LAdir = ${LOCALBASE}| ; \ |
26 |
s|^CC[ ]*=.*$$|CC = ${CC}| ; \ |
42 |
s|^CC[ ]*=.*$$|CC = ${CC}| ; \ |
27 |
s|^CCFLAGS[ ]*=.*$$|CCFLAGS = $$\(HPL_DEFS\) ${CFLAGS} -fomit-frame-pointer -funroll-loops| ; \ |
43 |
s|^CCFLAGS[ ]*=.*$$|CCFLAGS = $$\(HPL_DEFS\) ${CFLAGS}| ; \ |
28 |
s|^LINKER[ ]*=.*$$|LINKER = ${FC}| ; \ |
44 |
s|^LINKER[ ]*=.*$$|LINKER = ${FC}| ; \ |
29 |
s|^LINKFLAGS[ ]*=\(.*\)$$|LINKFLAGS =\1 ${LDFLAGS}| ; \ |
45 |
s|^LINKFLAGS[ ]*=\(.*\)$$|LINKFLAGS =\1 ${LDFLAGS}| ; \ |
30 |
s|^ARCHIVER[ ]*=.*$$|ARCHIVER = ${AR}| ; \ |
46 |
s|^ARCHIVER[ ]*=.*$$|ARCHIVER = ${AR}| ; \ |
31 |
s|ARCH[ )]|_&|g ; \ |
47 |
s|ARCH[ )]|_&|g ; \ |
32 |
s|^HPL_OPTS[ ]*=.*$$|HPL_OPTS =| ; \ |
48 |
s|^HPL_OPTS[ ]*=.*$$|HPL_OPTS =| ; \ |
33 |
s|^LAlib[ ]*=.*$$|LAlib = $$\(LAdir\)/lib/libblas.a| ; \ |
49 |
s|^LAlib[ ]*=.*$$|LAlib = ${BLASLIB}| ; \ |
34 |
s|libmpich.a|libmpich.so -lpthread| ; \ |
50 |
s|^MPdir[ ]*=.*$$|MPdir = ${MPI_HOME}| ; \ |
35 |
s|libpmpich.a|libmpl.so -lpthread|' \ |
51 |
s|^MPinc[ ]*=.*$$|MPinc = ${MPI_CFLAGS}| ; \ |
|
|
52 |
s|^MPlib[ ]*=.*$$|MPlib = ${MPI_LIBS}|' \ |
36 |
${WRKSRC}/setup/Make.${HPL_ARCH} |
53 |
${WRKSRC}/setup/Make.${HPL_ARCH} |
37 |
@${REINPLACE_CMD} -e 's|HPL\.dat|${PREFIX}/etc/${PORTNAME}/&|' \ |
54 |
${REINPLACE_CMD} -e 's|HPL\.dat|${PREFIX}/etc/${PORTNAME}/&|' \ |
38 |
${WRKSRC}/testing/ptest/HPL_pdinfo.c |
55 |
${WRKSRC}/testing/ptest/HPL_pdinfo.c |
39 |
@${CP} ${WRKSRC}/setup/Make.${HPL_ARCH} ${WRKSRC}/ |
56 |
${CP} ${WRKSRC}/setup/Make.${HPL_ARCH} ${WRKSRC}/ |
40 |
@${REINPLACE_CMD} -e '/^build/s|$$| startup|' ${WRKSRC}/Makefile |
57 |
${REINPLACE_CMD} -e '/^build/s|$$| startup|' ${WRKSRC}/Makefile |
41 |
|
58 |
|
42 |
do-install: |
59 |
do-install: |
43 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
60 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
44 |
- |
|
|