forked from amd/scalapack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSLmake.inc
87 lines (67 loc) · 2.33 KB
/
SLmake.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
############################################################################
#
# Program: ScaLAPACK
#
# Module: SLmake.inc
#
# Purpose: Top-level Definitions
#
# Creation date: November 05, 2019
#
# Modified: December 10, 2019
#
#
############################################################################
#
# C preprocessor definitions: set CDEFS to one of the following:
#
# -DNoChange (fortran subprogram names are lower case without any suffix)
# -DUpCase (fortran subprogram names are upper case without any suffix)
# -DAdd_ (fortran subprogram names are lower case with "_" appended)
CDEFS = -DAdd_
#
# The fortran and C compilers, loaders, and their flags
#
FC = mpif90
CC = mpicc
NOOPT = -O0
# Use following macros to enable/disable features
# DYNAMIC_WORK_MEM_ALLOC macro to enable testing for higher matrix sizes
# AOCL_DTL_AUTO_TRACE_ENABLE to enable automatic function call tracing
# AOCL_DTL_ADVANCED_TRACE_ENABLE to enable advanced function call tracing
# ENABLE_LOOK_AHEAD_FOR_LU to enable look-ahead optimization for LU (pdgetrf)
FTFLAGS =
FCFLAGS = -cpp -DF2C -O3 -fopenmp
# Retain the above line when linking with fortran to C converted Lapack libraries.
# Comment the above line and Uncomment the below line when linking with Fortran based Lapack libraries.
#FCFLAGS = -cpp -O3
CCFLAGS = -O3 -fopenmp -DENABLE_LOOK_AHEAD_FOR_LU
FCFLAGS += $(FTFLAGS)
CCFLAGS += $(FTFLAGS)
FCLOADER = $(FC)
CCLOADER = $(CC)
FCLOADFLAGS = $(FCFLAGS)
CCLOADFLAGS = $(CCFLAGS)
#
# The archiver and the flag(s) to use when building archive (library)
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo
#
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
#
# The name of the ScaLAPACK library to be created
#
SCALAPACKLIB = libscalapack.a
#
# BLAS, LAPACK (and possibly other) libraries needed for linking test programs
#
#BLASLIB = -lblas
#LAPACKLIB = -llapack
# AMD optimized Scalapack requires 'Blis' and 'LibFlame' libraries pre-installed.
# Provide Blis and LibFlame library paths (as below)
BLASLIB_PATH :=
LAPACKLIB_PATH :=
BLASLIB = $(BLASLIB_PATH)/libblis-mt.a
LAPACKLIB = $(LAPACKLIB_PATH)/libflame.a
LIBS = $(LAPACKLIB) $(BLASLIB)