Date: Sun, 12 Apr 2020 09:15:36 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531492 - in head/math/blacs: . files Message-ID: <202004120915.03C9FaOx022124@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danilo Date: Sun Apr 12 09:15:36 2020 New Revision: 531492 URL: https://svnweb.freebsd.org/changeset/ports/531492 Log: - Remove leading article from COMMENT - Introduce option helpers - Move OpenMPI support to net/openmpi3. OpenMPI 1 is deprecated Modified: head/math/blacs/Makefile head/math/blacs/files/Bmake.inc-openmpi.diff head/math/blacs/files/pkg-message.in Modified: head/math/blacs/Makefile ============================================================================== --- head/math/blacs/Makefile Sun Apr 12 09:14:39 2020 (r531491) +++ head/math/blacs/Makefile Sun Apr 12 09:15:36 2020 (r531492) @@ -3,7 +3,7 @@ PORTNAME= blacs PORTVERSION= 1.7 -PORTREVISION= 35 +PORTREVISION= 36 CATEGORIES= math MASTER_SITES= NETLIB/blacs DISTNAME= BLACS @@ -12,33 +12,27 @@ DIST_SUBDIR= blacs EXTRACT_ONLY= mpiblacs.tgz blacstester.tgz mpiblacs-patch03.tgz MAINTAINER= ports@FreeBSD.org -COMMENT= The BLACS (Basic Linear Algebra Communication Subprograms) +COMMENT= BLACS (Basic Linear Algebra Communication Subprograms) SUB_FILES= pkg-message USES= fortran gmake USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS +OPTIONS_RADIO= MPI +OPTIONS_RADIO_MPI= MPICH OPENMPI +OPTIONS_DEFAULT= DOCS MPICH -.include <bsd.port.pre.mk> - -.if ! ${PORT_OPTIONS:MDOCS} -DISTFILES+= blacs_install.ps f77blacsqref.ps lawn94.ps \ +DOCS_DISTFILES= blacs_install.ps f77blacsqref.ps lawn94.ps \ cblacsqref.ps mpi_prop.ps mpiblacs_issues.ps -.endif -.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun) -WITH_OPENMPI= yes -.endif +OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi3 +OPENMPI_EXTRA_PATCHES= ${FILESDIR}/Bmake.inc-openmpi.diff -.if defined(WITH_OPENMPI) -BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi -RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:net/openmpi -EXTRA_PATCHES+= ${FILESDIR}/Bmake.inc-openmpi.diff -.else -LIB_DEPENDS+= libmpich.so:net/mpich2 -EXTRA_PATCHES+= ${FILESDIR}/Bmake.inc-mpich.diff -.endif +MPICH_LIB_DEPENDS= libmpich.so:net/mpich2 +MPICH_EXTRA_PATCHES= ${FILESDIR}/Bmake.inc-mpich.diff + +.include <bsd.port.pre.mk> F77EXTRAFLAGS= #-w -fno-globals -fugly-complex DEBUG_LEVEL= 0 Modified: head/math/blacs/files/Bmake.inc-openmpi.diff ============================================================================== --- head/math/blacs/files/Bmake.inc-openmpi.diff Sun Apr 12 09:14:39 2020 (r531491) +++ head/math/blacs/files/Bmake.inc-openmpi.diff Sun Apr 12 09:15:36 2020 (r531492) @@ -1,5 +1,5 @@ ---- Bmake.inc.orig 2014-08-22 23:54:21.000000000 +0200 -+++ Bmake.inc 2014-08-22 23:55:10.000000000 +0200 +--- Bmake.inc.orig 2014-08-22 23:54:21.000000000 +0200 ++++ Bmake.inc 2014-08-22 23:55:10.000000000 +0200 @@ -13,7 +13,7 @@ # ----------------------------- # The top level BLACS directory @@ -32,7 +32,7 @@ # ------------------------------------- - MPIdir = /usr/local/mpich - MPILIBdir = $(MPIdir)/lib/ -+ MPIdir = @LOCALBASE@/mpi/openmpi ++ MPIdir = @LOCALBASE@/mpi/openmpi3 + MPILIBdir = MPIINCdir = $(MPIdir)/include - MPILIB = $(MPILIBdir)/libmpich.a @@ -40,7 +40,7 @@ # ------------------------------------- # All libraries required by the tester. -@@ -86,7 +86,7 @@ +@@ -86,14 +86,14 @@ # The directory to find the required communication library include files, # if they are required by your system. # ----------------------------------------------------------------------- @@ -49,6 +49,14 @@ # --------------------------------------------------------------------------- # The Fortran 77 to C interface to be used. If you are unsure of the correct + # setting for your platform, compile and run BLACS/INSTALL/xintface. + # Choices are: Add_, NoChange, UpCase, or f77IsF2C. + # --------------------------------------------------------------------------- +- INTFACE = -Df77IsF2C ++ INTFACE = -DAdd_ + + # ------------------------------------------------------------------------ + # Allows the user to vary the topologies that the BLACS default topologies @@ -140,7 +140,7 @@ # If you know that your MPI uses the same handles for fortran and C # communicators, you can replace the empty macro definition below with @@ -70,14 +78,14 @@ - CC = gcc - CCFLAGS = -O4 - CCLOADER = $(CC) -+ F77 = @LOCALBASE@/mpi/openmpi/bin/mpif77 ++ F77 = @LOCALBASE@/mpi/openmpi3/bin/mpif77 + F77NO_OPTFLAGS = @F77EXTRAFLAGS@ + F77FLAGS = @FFLAGS@ -+ F77LOADER = @LOCALBASE@/mpi/openmpi/bin/mpif77 ++ F77LOADER = @LOCALBASE@/mpi/openmpi3/bin/mpif77 + F77LOADFLAGS = @FFLAGS@ -+ CC = @LOCALBASE@/mpi/openmpi/bin/mpicc ++ CC = @LOCALBASE@/mpi/openmpi3/bin/mpicc + CCFLAGS = @CFLAGS@ -+ CCLOADER = @LOCALBASE@/mpi/openmpi/bin/mpicc ++ CCLOADER = @LOCALBASE@/mpi/openmpi3/bin/mpicc CCLOADFLAGS = - # -------------------------------------------------------------------------- Modified: head/math/blacs/files/pkg-message.in ============================================================================== --- head/math/blacs/files/pkg-message.in Sun Apr 12 09:14:39 2020 (r531491) +++ head/math/blacs/files/pkg-message.in Sun Apr 12 09:15:36 2020 (r531492) @@ -13,8 +13,8 @@ Or, if you're using OpenMPI: % cd %%PREFIX%%/share/BLACS/TESTING - % LD_LIBRARY_PATH=%%LOCALBASE%%/mpi/openmpi/lib/ export LD_LIBRARY_PATH - % PATH=$PATH:%%LOCALBASE%%/mpi/openmpi/bin/ export PATH + % LD_LIBRARY_PATH=%%LOCALBASE%%/mpi/openmpi3/lib/ export LD_LIBRARY_PATH + % PATH=$PATH:%%LOCALBASE%%/mpi/openmpi3/bin/ export PATH % mpirun -np 4 ./xCbtest_MPI-FreeBSD % mpirun -np 4 ./xFbtest_MPI-FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004120915.03C9FaOx022124>