Skip to content

Instantly share code, notes, and snippets.

@cwsmith
Last active December 11, 2015 14:25
Show Gist options
  • Save cwsmith/67f2b3ae06428d5b7906 to your computer and use it in GitHub Desktop.
Save cwsmith/67f2b3ae06428d5b7906 to your computer and use it in GitHub Desktop.
patch for MUMPS 5.10.0 Makefile.G95.PAR for NERSC edison
*** Make.inc/Makefile.G95.PAR Tue May 10 08:56:32 2011
--- Makefile.inc Fri Dec 11 09:22:50 2015
***************
*** 34,41 ****
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! #LMETISDIR = /local/metis/
! #IMETIS = # Should be provided if you use parmetis
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
--- 34,42 ----
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! parmetisInstallDir ?= /path/to/nowhere/
! LMETISDIR = ${parmetisInstallDir}/lib
! IMETIS = -I${parmetisInstallDir}/include
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
***************
*** 44,55 ****
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! #LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
! ORDERINGSF = -Dpord
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
--- 45,57 ----
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis3
! #ORDERINGSF = -Dpord
! ORDERINGSF = -Dpord -Dparmetis3
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
***************
*** 65,94 ****
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = gcc
! FC = g95
! FL = g95
AR = ar vr
! RANLIB = echo
! SCALAP = /usr/local/SCALAPACK/libscalapack.a /usr/local/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacs_MPI-LINUX-0.a
! INCPAR = -I/usr/local/mpich-1.2.7p1/include
! LIBPAR = $(SCALAP) -L/usr/local/mpich-1.2.7p1/lib -lfmpich -lmpich
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
! #LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
! LIBBLAS =/usr/local/ATLAS/lib/Linux_P4SSE2/libf77blas.a /usr/local/ATLAS/lib/Linux_P4SSE2/libatlas.a -lg2c
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd__
#Begin Optimization options
! OPTF = -O -i4
! OPTL = -O
! OPTC = -O -DMAIN_COMP
#End Optimization options
INCS = $(INCPAR)
--- 67,96 ----
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = mpicc
! FC = mpif90
! FL = mpif90
AR = ar vr
! RANLIB = ranlib
! SCALAP =
! INCPAR =
! LIBPAR =
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
! LIBBLAS ?= /path/to/blas.a
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd_
#Begin Optimization options
! opts = -02 -g -fno-omit-frame-pointer
! OPTF = ${opts}
! OPTL = ${opts}
! OPTC = ${opts}
#End Optimization options
INCS = $(INCPAR)
*** Make.inc/Makefile.G95.PAR 2011-05-10 05:56:32.000000000 -0700
--- Makefile.inc 2015-10-30 08:54:10.070387000 -0700
***************
*** 34,41 ****
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! #LMETISDIR = /local/metis/
! #IMETIS = # Should be provided if you use parmetis
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
--- 34,42 ----
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! parmetisInstallDir ?= /path/to/nowhere/
! LMETISDIR = ${parmetisInstallDir}/lib
! IMETIS = -I${parmetisInstallDir}/include
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
***************
*** 44,55 ****
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! #LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
! ORDERINGSF = -Dpord
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
--- 45,57 ----
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis3
! #ORDERINGSF = -Dpord
! ORDERINGSF = -Dpord -Dparmetis3
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
***************
*** 65,94 ****
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = gcc
! FC = g95
! FL = g95
AR = ar vr
! RANLIB = echo
! SCALAP = /usr/local/SCALAPACK/libscalapack.a /usr/local/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacs_MPI-LINUX-0.a
! INCPAR = -I/usr/local/mpich-1.2.7p1/include
! LIBPAR = $(SCALAP) -L/usr/local/mpich-1.2.7p1/lib -lfmpich -lmpich
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
#LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
! LIBBLAS =/usr/local/ATLAS/lib/Linux_P4SSE2/libf77blas.a /usr/local/ATLAS/lib/Linux_P4SSE2/libatlas.a -lg2c
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd__
#Begin Optimization options
! OPTF = -O -i4
! OPTL = -O
! OPTC = -O -DMAIN_COMP
#End Optimization options
INCS = $(INCPAR)
--- 67,96 ----
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = cc
! FC = ftn
! FL = ftn
AR = ar vr
! RANLIB = ranlib
! SCALAP =
! INCPAR =
! LIBPAR =
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
#LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
! LIBBLAS =
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd_
#Begin Optimization options
! OPTF = -O2 -g
! OPTL = -O2 -g
! OPTC = -O2 -g
#End Optimization options
INCS = $(INCPAR)
*** Makefile.inc 2015-10-28 06:32:50.367766000 -0700
--- ../Makefile.inc 2015-10-28 06:32:32.037820000 -0700
***************
*** 36,43 ****
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! #LMETISDIR = /local/metis/
! #IMETIS = # should be provided if you use parmetis, to access parmetis.h
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
--- 36,44 ----
IPORD = -I$(topdir)/PORD/include/
LPORD = -L$(LPORDDIR) -lpord
! parmetisInstallDir ?= /path/to/nowhere/
! LMETISDIR = ${parmetisInstallDir}/lib
! IMETIS = -I${parmetisInstallDir}/include
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
***************
*** 46,57 ****
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! #LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
! ORDERINGSF = -Dpord
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
--- 47,59 ----
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
#LMETIS = -L$(LMETISDIR) -lmetis
! LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
# The following variables will be used in the compilation process.
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
! #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis3
! #ORDERINGSF = -Dpord
! ORDERINGSF = -Dpord -Dparmetis3
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
***************
*** 67,96 ****
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = gcc
! FC = g95
! FL = g95
AR = ar vr
! RANLIB = echo
! SCALAP = /usr/local/SCALAPACK/libscalapack.a /usr/local/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacs_MPI-LINUX-0.a
! INCPAR = -I/usr/local/mpich-1.2.7p1/include
! LIBPAR = $(SCALAP) -L/usr/local/mpich-1.2.7p1/lib -lfmpich -lmpich
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
#LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
! LIBBLAS =/usr/local/ATLAS/lib/Linux_P4SSE2/libf77blas.a /usr/local/ATLAS/lib/Linux_P4SSE2/libatlas.a -lg2c
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd__
#Begin Optimization options
! OPTF = -O -i4
! OPTL = -O
! OPTC = -O
#End Optimization options
INCS = $(INCPAR)
--- 69,98 ----
OUTC = -o
OUTF = -o
RM = /bin/rm -f
! CC = cc
! FC = ftn
! FL = ftn
AR = ar vr
! RANLIB = ranlib
! SCALAP =
! INCPAR =
! LIBPAR =
INCSEQ = -I$(topdir)/libseq
LIBSEQ = -L$(topdir)/libseq -lmpiseq
#LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
! LIBBLAS =
LIBOTHERS = -lpthread
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
! CDEFS = -DAdd_
#Begin Optimization options
! OPTF = -O2
! OPTL = -O2
! OPTC = -O2
#End Optimization options
INCS = $(INCPAR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment