-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# make.inc for NAG Fortran compiler | ||
# Online documentation: https://www.nag.com/nagware/np/r71_doc/manual/compiler_2_4.html#OPTIONS | ||
|
||
FC=nagfor | ||
|
||
# The path of libraries by NAG compiler | ||
LIB_NAG = /usr/local/lib/NAG_Fortran | ||
|
||
# Brief descriptions of specified options below: | ||
# -PIC: produce position-independent code | ||
# -O2: optimization at a normal level | ||
# -Ounroll=2: the depth of loo-unrolling | ||
# -f90_sign: use the Fortran 77/90 version of the SIGN intrinsic instead of the Fortran 95 one | ||
# -dcfuns: enable recognition of non-standard double precision complex intrinsic functions. | ||
# -dusty: allows the compilation and execution of legacy software. | ||
# -w=x77: suppresses extension warnings for obsolete but common extensions to Fortran 77. | ||
# -w=unreffed: suppresses warning messages about variables set but never referenced. | ||
# -w=unused: suppresses warning messages about unused entities. | ||
# -ieee=full: set the mode of IEEE arithmetic operation according to full mode. | ||
|
||
# Main compile command for NAG Fortran compiler | ||
FFLAGS = -PIC -O2 -Ounroll=1 -f90_sign -dcfuns -dusty -w=obs -w=x77 -w=unreffed -w=unused -ieee=full | ||
|
||
# Flags overwritten in makefile | ||
OMPFLAGS = -openmp | ||
# OMPLIBS = -lf71omp64 -L$(LIB_NAG) | ||
OMPLIBS = -lf71omp64 -lf71rts -L$(LIB_NAG) | ||
LIBS = -lf71rts -L$(LIB_NAG) | ||
CLIBS = -lm -ldl -L$(LIB_NAG) | ||
FFLAGS_DYN = -PIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# makefile overrides | ||
# OS: macOS | ||
# Compiler: gfortran X.X/Clang | ||
# OpenMP: enabled | ||
# | ||
|
||
CC=gcc | ||
CXX=g++ | ||
FC=gfortran | ||
|
||
FFLAGS= -fPIC -O3 -arch arm64 -std=legacy -w -mno-outline-atomics | ||
FFLAGS_DYN= -shared -fPIC | ||
CFLAGS= -fPIC -O3 -arch arm64 -std=c99 | ||
CXXFLAGS= -std=c++11 -DSCTL_PROFILE=-1 -fPIC -O3 -arch arm64 | ||
|
||
|
||
ifeq ($(PREFIX),) | ||
FMM_INSTALL_DIR=/usr/local/lib | ||
endif | ||
|
||
|
||
CFLAGS += -I src | ||
|
||
# OpenMP with gcc on OSX needs the following | ||
OMPFLAGS = -fopenmp | ||
OMPLIBS = -lgomp | ||
|
||
# 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 | ||
|
||
|