forked from ecmwf-ifs/ecrad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile_include.amd_intel
More file actions
42 lines (36 loc) · 1.14 KB
/
Makefile_include.amd_intel
File metadata and controls
42 lines (36 loc) · 1.14 KB
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
# This is a Makefile for the Intel compiler: run "make
# PROFILE=intel". Need all arrays to be on the heap for it to work,
# hence -heap-arrays.
NCHOME = /home/peter/netcdf-intel/
NFHOME = /home/peter/netcdf-intel/
NETCDF_INCLUDE = -I$(NFHOME)/include -I$(NCHOME)/include
NETCDF_LIB = -lnetcdff -lnetcdf
LDFLAGS += -L$(NFHOME)/lib -L$(NCHOME)/lib
FC = ifort
CC = icc
CPPFLAGS =
ifndef DEBUG
OPTFLAGS = --ipo -O3 -no-prec-div -fp-model fast=2 -march=core-avx2
#OPTFLAGS = -O3 -xHost #-march=core-avx2
#OPTFLAGS = -O3 -march=core-avx2 -align array64byte -fma -ftz -fomit-frame-pointer #-qopt-report=2 -fp-model=fast
else
#OPTFLAGS = -O3 -march=core-avx2 -ip -m64 -shared-intel -fPIC
OPTFLAGS = -O0
endif
#BLAS LIBRARY
#BLASLIB=mkl
BLASLIB = blis-amd
#BLAS_DIR = $(HOME)/blis-amd
BLAS_DIR = $(HOME)/amd-blis-3.0.6
BLASLIB = blis
BLAS_DIR = $(HOME)/blis
# GPTL LIBRARY
#GPTL_TIMING=1
TIME_DIR=/home/peter/gptl-intel
#FCLIBS=-lunwind
LDFLAGS += -lrt
WARNFLAGS = -warn all
BASICFLAGS = -module ../mod -convert big_endian -ip -m64 -shared-intel -fPIC
# -fpe0 -fp-model precise -ftz -fp-speculation safe
DEBUGFLAGS = -g
OMPFLAG = -qopenmp -qopenmp-lib=compat