Last active
December 11, 2015 14:40
-
-
Save cwsmith/a084ffe6cd1d5a348438 to your computer and use it in GitHub Desktop.
patch for SuperLU_Dist_3.2 makefile on NERSC ediso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** MAKE_INC/make.xt5 Wed Oct 24 15:46:16 2012 | |
--- make.inc Fri Dec 11 09:39:22 2015 | |
*************** | |
*** 16,36 **** | |
# | |
# The machine (platform) identifier to append to the library names | |
# | |
! PLAT = _xt5 | |
# | |
# The name of the libraries to be created/linked to | |
# | |
! DSuperLUroot = ${HOME}/Release_Codes/SuperLU_DIST-branch | |
! DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist_3.0.a | |
# | |
BLASDEF = -DUSE_VENDOR_BLAS | |
! BLASLIB = | |
! METISLIB = -L/usr/common/acts/PARMETIS/3.1.1/cray-xt_O -lmetis | |
! PARMETISLIB = -L/usr/common/acts/PARMETIS/3.1.1/cray-xt_O -lparmetis | |
# Define the required Fortran libraries, if you use C compiler to link | |
! FLIBS = -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl | |
# Define all the libraries | |
LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS) | |
--- 16,46 ---- | |
# | |
# The machine (platform) identifier to append to the library names | |
# | |
! PLAT = | |
# | |
# The name of the libraries to be created/linked to | |
# | |
! DSuperLUroot ?= /path/to/superlu/root/dir | |
! DSUPERLULIB = ${DSuperLUroot}/lib/libsuperlu_dist_3.2.a | |
# | |
BLASDEF = -DUSE_VENDOR_BLAS | |
! BLASLIB_DIR ?= /path/to/blas.a | |
! BLASLIB = -L${BLASLIB_DIR} -lblas -latlas | |
! # | |
! ############################################################################ | |
! ## parmetis 4.x.x, 32-bit integer | |
! PARMETIS_DIR ?= /path/to/parmetis/install/dir | |
! ## parmetis 4.x.x, 64-bit integer | |
! # PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3_64 | |
! | |
! METISLIB := -L${PARMETIS_DIR}/lib -lmetis | |
! PARMETISLIB := -L${PARMETIS_DIR}/lib -lparmetis | |
! I_PARMETIS := -I${PARMETIS_DIR}/include | |
! ############################################################################ | |
# Define the required Fortran libraries, if you use C compiler to link | |
! #FLIBS = -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl | |
# Define all the libraries | |
LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS) | |
*************** | |
*** 45,62 **** | |
############################################################################ | |
# C compiler setup | |
! CC = cc | |
# CFLAGS should be set to be the C flags that include optimization | |
! CFLAGS = -c99 -fastsse -DDEBUGlevel=0 -DPRNTlevel=1 #-D_LONGINT | |
# | |
# NOOPTS should be set to be the C flags that turn off any optimization | |
! NOOPTS = -O0 | |
############################################################################ | |
# FORTRAN compiler setup | |
! FORTRAN = ftn | |
! F90FLAGS = -fastsse #-i8 | |
############################################################################ | |
! LOADER = cc | |
LOADOPTS = | |
############################################################################ | |
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) | |
--- 55,72 ---- | |
############################################################################ | |
# C compiler setup | |
! CC = mpicc | |
# CFLAGS should be set to be the C flags that include optimization | |
! CFLAGS = -O2 -g -fno-omit-frame-pointer -std=c99 -DDEBUGlevel=0 -DPRNTlevel=1 #-D_LONGINT | |
# | |
# NOOPTS should be set to be the C flags that turn off any optimization | |
! NOOPTS = -O0 -std=c99 | |
############################################################################ | |
# FORTRAN compiler setup | |
! FORTRAN = mpif90 | |
! F90FLAGS = -O2 -g -fno-omit-frame-pointer | |
############################################################################ | |
! LOADER = ${CC} | |
LOADOPTS = | |
############################################################################ | |
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** MAKE_INC/make.xt5 2012-10-24 12:46:16.000000000 -0700 | |
--- make.inc 2015-10-28 09:15:43.687066000 -0700 | |
*************** | |
*** 16,36 **** | |
# | |
# The machine (platform) identifier to append to the library names | |
# | |
! PLAT = _xt5 | |
# | |
# The name of the libraries to be created/linked to | |
# | |
! DSuperLUroot = ${HOME}/Release_Codes/SuperLU_DIST-branch | |
! DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist_3.0.a | |
# | |
BLASDEF = -DUSE_VENDOR_BLAS | |
BLASLIB = | |
! METISLIB = -L/usr/common/acts/PARMETIS/3.1.1/cray-xt_O -lmetis | |
! PARMETISLIB = -L/usr/common/acts/PARMETIS/3.1.1/cray-xt_O -lparmetis | |
# Define the required Fortran libraries, if you use C compiler to link | |
! FLIBS = -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl | |
# Define all the libraries | |
LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS) | |
--- 16,45 ---- | |
# | |
# The machine (platform) identifier to append to the library names | |
# | |
! PLAT = _xc30 | |
# | |
# The name of the libraries to be created/linked to | |
# | |
! DSuperLUroot ?= /path/to/superlu/root/dir | |
! DSUPERLULIB = ${DSuperLUroot}/lib/libsuperlu_dist_3.2.a | |
# | |
BLASDEF = -DUSE_VENDOR_BLAS | |
BLASLIB = | |
! # | |
! ############################################################################ | |
! ## parmetis 4.x.x, 32-bit integer | |
! PARMETIS_DIR := ${PARMETIS_INSTALL_DIR} | |
! ## parmetis 4.x.x, 64-bit integer | |
! # PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3_64 | |
! | |
! METISLIB := -L${PARMETIS_DIR}/lib -lmetis | |
! PARMETISLIB := -L${PARMETIS_DIR}/lib -lparmetis | |
! I_PARMETIS := -I${PARMETIS_DIR}/include | |
! ############################################################################ | |
# Define the required Fortran libraries, if you use C compiler to link | |
! #FLIBS = -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl | |
# Define all the libraries | |
LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB) $(FLIBS) | |
*************** | |
*** 47,62 **** | |
# C compiler setup | |
CC = cc | |
# CFLAGS should be set to be the C flags that include optimization | |
! CFLAGS = -c99 -fastsse -DDEBUGlevel=0 -DPRNTlevel=1 #-D_LONGINT | |
# | |
# NOOPTS should be set to be the C flags that turn off any optimization | |
! NOOPTS = -O0 | |
############################################################################ | |
# FORTRAN compiler setup | |
FORTRAN = ftn | |
! F90FLAGS = -fastsse #-i8 | |
############################################################################ | |
! LOADER = cc | |
LOADOPTS = | |
############################################################################ | |
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) | |
--- 56,71 ---- | |
# C compiler setup | |
CC = cc | |
# CFLAGS should be set to be the C flags that include optimization | |
! CFLAGS = -O3 -std=c99 -DDEBUGlevel=0 -DPRNTlevel=1 #-D_LONGINT | |
# | |
# NOOPTS should be set to be the C flags that turn off any optimization | |
! NOOPTS = -O0 -std=c99 | |
############################################################################ | |
# FORTRAN compiler setup | |
FORTRAN = ftn | |
! F90FLAGS = -03 | |
############################################################################ | |
! LOADER = ${CC} | |
LOADOPTS = | |
############################################################################ | |
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** ../SuperLU_DIST_3.2/Makefile Wed Oct 24 15:46:19 2012 | |
--- Makefile Thu Dec 10 11:13:54 2015 | |
*************** | |
*** 32,38 **** | |
( cd CBLAS; $(MAKE) ) | |
superlulib: | |
! ( cd SRC; $(MAKE) ) | |
cleanlib: | |
( cd SRC; $(MAKE) clean ) | |
--- 32,38 ---- | |
( cd CBLAS; $(MAKE) ) | |
superlulib: | |
! ( cd SRC; $(MAKE) all ) | |
cleanlib: | |
( cd SRC; $(MAKE) clean ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment