forked from flatironinstitute/FMM3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.inc.macos.intel
More file actions
37 lines (28 loc) · 863 Bytes
/
make.inc.macos.intel
File metadata and controls
37 lines (28 loc) · 863 Bytes
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
#
# This config tested under Intel Parallel Studio XE Composer Edition
# for macOS Version 2020 Update 1, released April 2020
# This release is only tested with Xcode 13.1.1
#
CC=icc
CXX=icpc
FC=ifort
FFLAGS= -fPIC -O3 -march=native -funroll-loops -mkl -std=legacy -w
LIBS=
#CLIBS = -lm -ldl -lifcore
CLIBS = -lm -ldl
ifeq ($(PREFIX),)
FMM_INSTALL_DIR=/usr/local/lib
endif
ifeq ($(FAST_KER),ON)
CXXFLAGS = $(FFLAGS)
CXXFLAGS += -std=c++11 -DSCTL_HAVE_SVML -DSCTL_PROFILE=-1
LIBS += -cxxlib
endif
# used to be needed on the CXXFLAGS for weird intel compiler problems
# -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
OMPFLAGS = -qopenmp
OMPLIBS = -qopenmp
# MATLAB interface:
FDIR=$$(dirname `gfortran --print-file-name libgfortran.dylib`)
MFLAGS +=-L${FDIR}
MEX = $(shell ls -d /Applications/MATLAB_R* | sort | tail -1)/bin/mex