-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuperlu_make.inc
49 lines (43 loc) · 1.32 KB
/
superlu_make.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
############################################################################
#
# Program: SuperLU_DIST
#
# Module: make.inc
#
# Purpose: Top-level Definitions
#
# Creation date: March 1, 2016 version 5.0.0
#
# Modified:
#
#
############################################################################
#
# The name of the libraries to be created/linked to
#
VERSION = 5.1.0
SuperLUroot = ${HOME}/src/SuperLU_DIST_${VERSION}
#DSUPERLULIB = $(SuperLUroot)/lib/libsuperlu_dist.a
DSUPERLULIB = ${HOME}/lib/libsuperlu_dist.a
# BLASDEF = -DUSE_VENDOR_BLAS
PARMETIS_DIR := ${HOME}/
I_PARMETIS := -I${PARMETIS_DIR}/include -I${HOME}/include
METISLIB := -L${PARMETIS_DIR}/lib -lmetis
PARMETISLIB := -L${PARMETIS_DIR} -lparmetis
LIBS = $(DSUPERLULIB) /usr/lib/libblas.so \
${PARMETISLIB} ${METISLIB}
#
# The archiver and the flag(s) to use when building archive (library)
# If your system has no ranlib, set RANLIB = echo.
#
ARCH = /usr/bin/ar
ARCHFLAGS = cr
RANLIB = /usr/bin/ranlib
CC = /usr/bin/mpicc
CFLAGS = -DNDEBUG -DAdd_ -DDEBUGlevel=0 -DPRNTlevel=0 -std=c99 -fPIC -g ${I_PARMETIS}
# CFLAGS += -D
# CFLAGS +=
NOOPTS = -O0
FORTRAN = /usr/bin/gfortran
LOADER = $(CC)
LOADOPTS = -Wl,-rpath=/home/user/src/lib -g # -Wl,-Bdynamic