forked from icl-utk-edu/plasma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.inc.power8-gcc
50 lines (38 loc) · 1.7 KB
/
make.inc.power8-gcc
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
# PLASMA example make.inc, using Intel MKL and gcc
#
# PLASMA is a software package provided by:
# University of Tennessee, US,
# University of Manchester, UK.
# --------------------
# programs
CC = gcc
FC = gfortran
AR = ar
RANLIB = ranlib
# --------------------
# flags
# Use -fPIC to make shared (.so) and static (.a) libraries;
# can be commented out if making only static libraries.
FPIC = -fPIC
CFLAGS = -fopenmp $(FPIC) -O3 -std=c99 -Wall -pedantic -Wshadow -Wno-unused-function
FCFLAGS = -fopenmp $(FPIC) -O3 -std=f2008 -Wall
LDFLAGS = -fopenmp $(FPIC)
# options for ESSL
CFLAGS += -DHAVE_ESSL
# one of: aix bsd c89 freebsd generic linux macosx mingw posix solaris
# usually generic is fine
lua_platform = posix
# --------------------
# PLASMA is a library in C, but can be also used from Fortran.
# In this case, Fortran interface needs to be build.
# 0 = no - Fortran codes will not be touched, the FC and FCFLAGS variables
# will not be referenced
# 1 = yes - Fortran interface will be compiled and included into the library
fortran ?= 0
# --------------------
# libraries
# USE NETLIB LAPACK distributed LAPACKE,CBLAS and its headers.
# Link with ESSL for most of its BLAS/LAPACK functions
# Link with Netlib LAPACK/BLAS for the missing functions in ESSL.
LIBS = ~/lapack-3.7.0-US/liblapacke.a ~/lapack-3.7.0-US/libcblas.a /sw/summitdev/essl/5.5.0-20161110/lib64/libessl.so /sw/summitdev/xl/20161123/xlf/15.1.5/lib/libxlf90.so /sw/summitdev/xl/20161123/xlf/15.1.5/lib/libxlfmath.so ~/lapack-3.7.0-US/liblapack.a ~/lapack-3.7.0-US/librefblas.a -lm -lgfortran
INC = -I ~/lapack-3.7.0-US/CBLAS/include -I ~/lapack-3.7.0-US/LAPACKE/include -I$(OLCF_ESSL_ROOT)/include