-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from HerculesJack/patch-1
add machine file for tigercpu at Princeton
- Loading branch information
Showing
1 changed file
with
87 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#======================================================================= | ||
# | ||
# FILE: Make.mach.tigercpu | ||
# | ||
# DESCRIPTION: Makefile settings for tigercpu at Princeton | ||
# | ||
# AUTHOR: He Jia (hejia@princeton.edu) | ||
# | ||
# DATE: 2020-08-31 | ||
# | ||
#======================================================================= | ||
|
||
MACH_FILE = Make.mach.tigercpu | ||
MACH_TEXT = tigercpu | ||
MACH_VALID = 1 | ||
|
||
# please load these modules: | ||
# module load intel/19.1/64/19.1.1.217 hdf5/intel-16.0/1.8.16 | ||
|
||
#----------------------------------------------------------------------- | ||
# Install paths (local variables) | ||
#----------------------------------------------------------------------- | ||
|
||
LOCAL_HDF5_INSTALL = ${HDF5DIR} | ||
|
||
#----------------------------------------------------------------------- | ||
# Compiler settings | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_CC_NOMPI = icc # C compiler when not using MPI | ||
MACH_CXX_NOMPI = icpc # C++ compiler when not using MPI | ||
MACH_FC_NOMPI = ifort # Fortran 77 compiler when not using MPI | ||
MACH_F90_NOMPI = ifort # Fortran 90 compiler when not using MPI | ||
MACH_LD_NOMPI = icpc # Linker when not using MPI | ||
MACH_LIBTOOL = libtool | ||
|
||
#----------------------------------------------------------------------- | ||
# Machine-dependent defines | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_DEFINES = -DLINUX -DH5_USE_16_API | ||
|
||
#----------------------------------------------------------------------- | ||
# Compiler flag settings | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_OMPFLAGS = -fopenmp | ||
MACH_CPPFLAGS = -P -traditional | ||
MACH_CFLAGS = | ||
MACH_CXXFLAGS = | ||
MACH_FFLAGS = -132 | ||
MACH_F90FLAGS = | ||
MACH_LDFLAGS = | ||
|
||
#----------------------------------------------------------------------- | ||
# Optimization flags | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_OPT_WARN = -Wall -g # Flags for verbose compiler warnings | ||
MACH_OPT_DEBUG = -O0 -g # Flags for debugging | ||
MACH_OPT_HIGH = -O2 -g -march=native # Flags for high conservative optimization | ||
MACH_OPT_AGGRESSIVE = -O3 -march=native # Flags for aggressive optimization | ||
|
||
#----------------------------------------------------------------------- | ||
# Includes | ||
#----------------------------------------------------------------------- | ||
|
||
LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes | ||
|
||
MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) | ||
|
||
#----------------------------------------------------------------------- | ||
# Libraries | ||
#----------------------------------------------------------------------- | ||
|
||
LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib64 -lhdf5 -lz # HDF5 libraries | ||
LOCAL_LIBS_MACH = -L$(LOCAL_COMPILER)/lib/intel64 -lcilkrts -lifcore -lifport # Machine-dependent libraries | ||
|
||
MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) | ||
|
||
#----------------------------------------------------------------------- | ||
# Installation | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_INSTALL_PREFIX = $(HOME)/grackle-build | ||
MACH_INSTALL_LIB_DIR = | ||
MACH_INSTALL_INCLUDE_DIR = |