1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

The BLACS (Basic Linear Algebra Communication Subprograms; using MPI)

PR: 40521
This commit is contained in:
Maho Nakata 2003-05-05 02:06:21 +00:00
parent 26700e260f
commit f7e3a6f2f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80142
7 changed files with 185 additions and 0 deletions

View File

@ -11,6 +11,7 @@
SUBDIR += asir2000
SUBDIR += atlas
SUBDIR += biggles
SUBDIR += blacs
SUBDIR += blas
SUBDIR += blitz++
SUBDIR += calc

74
math/blacs/Makefile Normal file
View File

@ -0,0 +1,74 @@
# New ports collection makefile for: blacs
# Date created: 5 May 2003
# Whom: NAKATA, Maho <maho@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= blacs
PORTVERSION= 1.7
CATEGORIES= math
MASTER_SITES= ftp://ftp.netlib.org/blacs/
DISTNAME= BLACS
DISTFILES= mpiblacs.tgz blacstester.tgz mpiblacs-patch03.tgz
.if !defined(NOPORTDOCS)
DISTFILES+= blacs_install.ps f77blacsqref.ps lawn94.ps \
cblacsqref.ps mpi_prop.ps mpiblacs_issues.ps
.endif
DIST_SUBDIR= blacs
EXTRACT_ONLY= mpiblacs.tgz blacstester.tgz mpiblacs-patch03.tgz
MAINTAINER= maho@FreeBSD.org
COMMENT= The BLACS (Basic Linear Algebra Communication Subprograms)
LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \
atlas:${PORTSDIR}/math/atlas
BUILD_DEPENDS= ${LOCALBASE}/mpich/lib/libmpich.a:${PORTSDIR}/net/mpich
.include <bsd.port.pre.mk>
pre-fetch:
@${ECHO} "If you want to use compiler other than f77,"
@${ECHO} "plase set NO_GNUF77=yes"
F77?= f77
.if !defined(NO_GNUF77)
F77EXTRAFLAGS= -w -fno-globals -fugly-complex
.endif
USE_REINPLACE= yes
DEBUG_LEVEL= 0
pre-patch:
(${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc)
post-patch:
(${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@DEBUG_LEVEL@,${DEBUG_LEVEL},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g' ${WRKSRC}/Bmake.inc)
do-build:
(cd ${WRKSRC}; make mpi; make tester)
do-install:
${INSTALL_DATA} ${WRKSRC}/LIB/blacsCinit_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacsc.a
${INSTALL_DATA} ${WRKSRC}/LIB/blacsF77init_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacsf77.a
${INSTALL_DATA} ${WRKSRC}/LIB/blacs_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacs.a
${MKDIR} ${PREFIX}/share/BLACS/TESTING
( cd ${WRKSRC}/TESTING/EXE ; \
${INSTALL_PROGRAM} xCbtest_MPI-FreeBSD-${DEBUG_LEVEL} ${PREFIX}/share/BLACS/TESTING/xCbtest_MPI-FreeBSD; \
${INSTALL_PROGRAM} xFbtest_MPI-FreeBSD-${DEBUG_LEVEL} ${PREFIX}/share/BLACS/TESTING/xFbtest_MPI-FreeBSD; \
${INSTALL_DATA} bsbr.dat ${PREFIX}/share/BLACS/TESTING; \
${INSTALL_DATA} bt.dat ${PREFIX}/share/BLACS/TESTING; \
${INSTALL_DATA} comb.dat ${PREFIX}/share/BLACS/TESTING; \
${INSTALL_DATA} sdrv.dat ${PREFIX}/share/BLACS/TESTING)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CAT} ${DISTDIR}/${DIST_SUBDIR}/blacs_install.ps | ${GZIP_CMD} > ${DOCSDIR}/blacs_install.ps.gz
${CAT} ${DISTDIR}/${DIST_SUBDIR}/cblacsqref.ps | ${GZIP_CMD} > ${DOCSDIR}/cblacsqref.ps.gz
${CAT} ${DISTDIR}/${DIST_SUBDIR}/f77blacsqref.ps | ${GZIP_CMD} > ${DOCSDIR}/f77blacsqref.ps.gz
${CAT} ${DISTDIR}/${DIST_SUBDIR}/lawn94.ps | ${GZIP_CMD} > ${DOCSDIR}/lawn94.ps.gz
${CAT} ${DISTDIR}/${DIST_SUBDIR}/mpi_prop.ps | ${GZIP_CMD} > ${DOCSDIR}/mpi_prop.ps.gz
${CAT} ${DISTDIR}/${DIST_SUBDIR}/mpiblacs_issues.ps | ${GZIP_CMD} > ${DOCSDIR}/mpiblacs_issues.ps.gz
.endif
post-install:
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.post.mk>

9
math/blacs/distinfo Normal file
View File

@ -0,0 +1,9 @@
MD5 (blacs/mpiblacs.tgz) = 850b302d5f7786a6bc895cac5e9382bb
MD5 (blacs/mpiblacs-patch03.tgz) = 48fdf5e4ef6cf53daec9eeef40498a8b
MD5 (blacs/blacstester.tgz) = 5cdd9cf792b793baaeb8acef17b9bb71
MD5 (blacs/blacs_install.ps) = 7430c30f1b23eafb4ee83fa69db2f027
MD5 (blacs/lawn94.ps) = 25f5d72d9ebd851705aae831095af509
MD5 (blacs/mpiblacs_issues.ps) = 3aff8dd7eaf926271502e9be88bfb9b5
MD5 (blacs/mpi_prop.ps) = 6e56d38223e5fb7dd7a6a01c5e948d38
MD5 (blacs/cblacsqref.ps) = c0fb4c729794006698e3cedeedfb6bf6
MD5 (blacs/f77blacsqref.ps) = 6670bbd7911947b191a12dba0e1c7584

View File

@ -0,0 +1,64 @@
--- Bmake.inc.orig Mon May 5 10:53:00 2003
+++ Bmake.inc Mon May 5 10:58:38 2003
@@ -13,7 +13,7 @@
# -----------------------------
# The top level BLACS directory
# -----------------------------
- BTOPdir = $(HOME)/BLACS
+ BTOPdir = @WRKSRC@
# ---------------------------------------------------------------------------
# The communication library your BLACS have been written for.
@@ -32,14 +32,14 @@
# -------------------------------------------------------------
# The platform identifier to suffix to the end of library names
# -------------------------------------------------------------
- PLAT = LINUX
+ PLAT = FreeBSD
# ----------------------------------------------------------
# Name and location of the BLACS library. See section 2 for
# details on BLACS debug level (BLACSDBGLVL).
# ----------------------------------------------------------
BLACSdir = $(BTOPdir)/LIB
- BLACSDBGLVL = 0
+ BLACSDBGLVL = @DEBUG_LEVEL@
BLACSFINIT = $(BLACSdir)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
@@ -47,10 +47,10 @@
# -------------------------------------
# Name and location of the MPI library.
# -------------------------------------
- MPIdir = /usr/local/mpich
+ MPIdir = @PREFIX@/mpich
MPILIBdir = $(MPIdir)/lib/
MPIINCdir = $(MPIdir)/include
- MPILIB = $(MPILIBdir)/libmpich.a
+ MPILIB = $(MPILIBdir)/libmpich.a $(MPILIBdir)/libpmpich.a
# -------------------------------------
# All libraries required by the tester.
@@ -195,16 +195,15 @@
# optimization. This is the F77NO_OPTFLAG. The usage of the remaining
# macros should be obvious from the names.
#=============================================================================
- F77 = g77
- F77NO_OPTFLAGS =
- F77FLAGS = $(F77NO_OPTFLAGS) -O
- F77LOADER = $(F77)
+ F77 = @F77@
+ F77NO_OPTFLAGS = @F77EXTRAFLAGS@
+ F77FLAGS = @FFLAGS@
+ F77LOADER = @F77@
F77LOADFLAGS =
- CC = gcc
- CCFLAGS = -O4
+ CC = @CC@
+ CCFLAGS = @CFLAGS@
CCLOADER = $(CC)
CCLOADFLAGS =
-
# --------------------------------------------------------------------------
# The archiver and the flag(s) to use when building an archive (library).
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo.

7
math/blacs/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
The BLACS (Basic Linear Algebra Communication Subprograms)
project is an ongoing investigation whose purpose is to create
a linear algebra oriented message passing interface
that may be implemented efficiently and uniformly across
a large range of distributed memory platforms.
WWW: http://www.netlib.org/blacs/

12
math/blacs/pkg-message Normal file
View File

@ -0,0 +1,12 @@
*********************************************************************
Please test your blacs installation
Test programs are located at /usr/local/share/BLACS/TESTING
Example:
% cd /usr/local/share/BLACS/TESTING
% mpirun -np 4 xCbtest_MPI-FreeBSD
% mpirun -np 4 xFbtest_MPI-FreeBSD
You can change -np 4 to any number to meet your local environment.
See files at /usr/local/share/doc/blacs for detail.
*********************************************************************

18
math/blacs/pkg-plist Normal file
View File

@ -0,0 +1,18 @@
lib/libblacs.a
lib/libblacsc.a
lib/libblacsf77.a
share/BLACS/TESTING/xCbtest_MPI-FreeBSD
share/BLACS/TESTING/xFbtest_MPI-FreeBSD
share/BLACS/TESTING/bsbr.dat
share/BLACS/TESTING/bt.dat
share/BLACS/TESTING/comb.dat
share/BLACS/TESTING/sdrv.dat
@dirrm share/BLACS/TESTING
@dirrm share/BLACS
%%PORTDOCS%%share/doc/blacs/blacs_install.ps.gz
%%PORTDOCS%%share/doc/blacs/f77blacsqref.ps.gz
%%PORTDOCS%%share/doc/blacs/mpi_prop.ps.gz
%%PORTDOCS%%share/doc/blacs/cblacsqref.ps.gz
%%PORTDOCS%%share/doc/blacs/lawn94.ps.gz
%%PORTDOCS%%share/doc/blacs/mpiblacs_issues.ps.gz
%%PORTDOCS%%@dirrm share/doc/blacs