Skip to content

Commit

Permalink
Merge pull request #74 from HerculesJack/patch-1
Browse files Browse the repository at this point in the history
add machine file for tigercpu at Princeton
  • Loading branch information
brittonsmith committed Sep 7, 2020
2 parents ab8e816 + 0f6788d commit 8553f8d
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions src/clib/Make.mach.tigercpu
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 =

0 comments on commit 8553f8d

Please sign in to comment.