Skip to content

Instantly share code, notes, and snippets.

@cwsmith
Last active October 22, 2015 18:31
Show Gist options
  • Save cwsmith/f00a293ca0d2c32ad85c to your computer and use it in GitHub Desktop.
Save cwsmith/f00a293ca0d2c32ad85c to your computer and use it in GitHub Desktop.
patch for SuperLU_Dist_4.2 makefile on NERSC edison
*** MAKE_INC/make.xc30 2015-09-25 11:35:30.000000000 -0700
--- make.inc 2015-10-22 11:30:20.191178000 -0700
***************
*** 23,43 ****
#
# The name of the libraries to be created/linked to
#
! DSuperLUroot = ${HOME}/Release_Codes/SuperLU_DIST_4.2
! DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist_4.2.a
#
BLASDEF = -DUSE_VENDOR_BLAS
BLASLIB =
#
############################################################################
## parmetis 4.x.x, 32-bit integer
! PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3
## parmetis 4.x.x, 64-bit integer
# PARMETIS_DIR := ${HOME}/Edison/lib/parmetis-4.0.3_64
! METISLIB := -L${PARMETIS_DIR}/build/Linux-x86_64/libmetis -lmetis
! PARMETISLIB := -L${PARMETIS_DIR}/build/Linux-x86_64/libparmetis -lparmetis
! I_PARMETIS := -I${PARMETIS_DIR}/include -I${PARMETIS_DIR}/metis/include
############################################################################
# Define the required Fortran libraries, if you use C compiler to link
--- 23,43 ----
#
# The name of the libraries to be created/linked to
#
! DSuperLUroot = /global/u2/c/cwsmith/ace3pDevelop/deps/SuperLU_DIST_4.2/
! DSUPERLULIB = ${DSuperLUroot}/lib/libsuperlu_dist_4.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
***************
*** 59,66 ****
# C compiler setup
CC = cc
# CFLAGS should be set to be the C flags that include optimization
! CFLAGS = -fast -m64 -std=c99 -Wall -openmp \
! $(I_PARMETIS) -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0 \
# uncomment the following to use 64-bit integer
# CFLAGS += -D_LONGINT
--- 59,66 ----
# C compiler setup
CC = cc
# CFLAGS should be set to be the C flags that include optimization
! CFLAGS = -O3 -m64 -std=c99 -Wall \
! ${I_PARMETIS} -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0 \
# uncomment the following to use 64-bit integer
# CFLAGS += -D_LONGINT
***************
*** 69,80 ****
############################################################################
# FORTRAN compiler setup
FORTRAN = ftn
! F90FLAGS = -fast #-Mipa=fast,safe
# uncomment the following to use 64-bit integer
# F90FLAGS += -i8
############################################################################
! LOADER = $(CC)
! LOADOPTS = -openmp
############################################################################
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
#
--- 69,80 ----
############################################################################
# FORTRAN compiler setup
FORTRAN = ftn
! F90FLAGS = -O3
# uncomment the following to use 64-bit integer
# F90FLAGS += -i8
############################################################################
! LOADER = ${CC}
! LOADOPTS =
############################################################################
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment