From 711589dcf75d8668f77aa2f228b286d574cad029 Mon Sep 17 00:00:00 2001 From: Britton Smith Date: Fri, 1 Mar 2024 12:00:09 +0000 Subject: [PATCH] Adding Gen's make files. --- src/clib/Make.mach.ATERUI | 88 +++++++++++++++++++++ src/clib/Make.mach.cfca-an | 85 ++++++++++++++++++++ src/clib/Make.mach.hive-gcc | 88 +++++++++++++++++++++ src/clib/Make.mach.hive-intel | 88 +++++++++++++++++++++ src/clib/Make.mach.kiken | 100 ++++++++++++++++++++++++ src/clib/Make.mach.sdsc-comet | 93 ++++++++++++++++++++++ src/clib/Make.mach.tacc-frontera-intel | 98 +++++++++++++++++++++++ src/clib/Make.mach.tacc-stampede2-intel | 98 +++++++++++++++++++++++ src/clib/Make.mach.win10 | 87 +++++++++++++++++++++ 9 files changed, 825 insertions(+) create mode 100644 src/clib/Make.mach.ATERUI create mode 100644 src/clib/Make.mach.cfca-an create mode 100644 src/clib/Make.mach.hive-gcc create mode 100644 src/clib/Make.mach.hive-intel create mode 100644 src/clib/Make.mach.kiken create mode 100644 src/clib/Make.mach.sdsc-comet create mode 100644 src/clib/Make.mach.tacc-frontera-intel create mode 100644 src/clib/Make.mach.tacc-stampede2-intel create mode 100644 src/clib/Make.mach.win10 diff --git a/src/clib/Make.mach.ATERUI b/src/clib/Make.mach.ATERUI new file mode 100644 index 00000000..122bbec3 --- /dev/null +++ b/src/clib/Make.mach.ATERUI @@ -0,0 +1,88 @@ +#======================================================================= +# +# FILE: Make.mach.linux-gnu +# +# DESCRIPTION: Makefile settings for a machine running Ubuntu +# +# AUTHOR: Rick Wagner (rick@ucsd.edu) +# +# DATE: 2008-09-16 +# +# This configuration assumes that build-essentials, gfortran, +# OpenMPI and HDF5 have been installed using apt-get. +# +#======================================================================= + +MACH_TEXT = CfCA aterui with cray compilers. \ + Do this: module load cray-hdf5 +MACH_VALID = 1 +MACH_FILE = Make.mach.ATERUI + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(HDF5_DIR) + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = cc # C compiler +MACH_CXX_NOMPI = CC # C++ compiler +MACH_FC_NOMPI = ftn # Fortran 77 +MACH_F90_NOMPI = ftn # Fortran 90 +MACH_LD_NOMPI = cc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +MACH_DEFINES = -DLINUX -DH5_USE_16_API -std=c11 -h fp3 -Wno-unknown-pragmas + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_OMPFLAGS = #-fopenmp +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = +MACH_F90FLAGS = +MACH_LDFLAGS = + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 # HDF5 libraries +LOCAL_LIBS_MACH = + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +MACH_INSTALL_PREFIX = /work/nakazatoyr/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.cfca-an b/src/clib/Make.mach.cfca-an new file mode 100644 index 00000000..e5573f9a --- /dev/null +++ b/src/clib/Make.mach.cfca-an @@ -0,0 +1,85 @@ +#======================================================================= +# +# FILE: Make.mach.linux-gnu +# +# DESCRIPTION: Makefile settings for a machine running Ubuntu +# +# AUTHOR: Rick Wagner (rick@ucsd.edu) +# +# DATE: 2008-09-16 +# +# This configuration assumes that build-essentials, gfortran, +# OpenMPI and HDF5 have been installed using apt-get. +# +#======================================================================= + +MACH_TEXT = Use apt-get to install libhdf5-serial-dev gfortran +MACH_VALID = 1 +MACH_FILE = Make.mach.linux-gnu + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = gcc # C compiler +MACH_CXX_NOMPI = g++ # C++ compiler +MACH_FC_NOMPI = gfortran # Fortran 77 +MACH_F90_NOMPI = gfortran # Fortran 90 +MACH_LD_NOMPI = gcc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +MACH_DEFINES = -DLINUX -DH5_USE_16_API -fPIC -std=c11 -Wno-unknown-pragmas + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_OMPFLAGS = #-fopenmp +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = -fno-second-underscore -ffixed-line-length-132 +MACH_F90FLAGS = -fno-second-underscore +MACH_LDFLAGS = + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 -lz # HDF5 libraries +LOCAL_LIBS_MACH = -lgfortran # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.hive-gcc b/src/clib/Make.mach.hive-gcc new file mode 100644 index 00000000..043caa39 --- /dev/null +++ b/src/clib/Make.mach.hive-gcc @@ -0,0 +1,88 @@ +#======================================================================= +# +# FILE: Make.mach.linux-gnu +# +# DESCRIPTION: Makefile settings for a machine running Ubuntu 8.04 +# +# AUTHOR: Rick Wagner (rick@ucsd.edu) +# +# DATE: 2008-09-16 +# +# This configuration assumes that build-essentials, gfortran, +# OpenMPI and HDF5 have been installed using apt-get. +# +#======================================================================= + +MACH_TEXT = Georgia Tech HIVE (GNU) +MACH_VALID = 1 +MACH_FILE = Make.mach.hive-gcc + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(HOME)/usr/local/ +#LOCAL_HDF5_INSTALL = /storage/home/hhive1/jw254/local/ +#LOCAL_HDF5_INSTALL = /usr/local/pacerepov1/hdf5/1.8.19/mvapich2-2.1/intel-15.0 + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = gcc # C compiler +MACH_CXX_NOMPI = g++ # C++ compiler +MACH_FC_NOMPI = gfortran # Fortran 77 +MACH_F90_NOMPI = gfortran # Fortran 90 +MACH_LD_NOMPI = gcc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +MACH_DEFINES = -DLINUX -DH5_USE_16_API -fPIC + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = -fno-second-underscore -ffixed-line-length-132 +MACH_F90FLAGS = -fno-second-underscore +MACH_LDFLAGS = + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 -lz # HDF5 libraries +LOCAL_LIBS_MACH = -lgfortran # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.hive-intel b/src/clib/Make.mach.hive-intel new file mode 100644 index 00000000..2c4d0d3a --- /dev/null +++ b/src/clib/Make.mach.hive-intel @@ -0,0 +1,88 @@ +#======================================================================= +# +# FILE: Make.mach.linux-gnu +# +# DESCRIPTION: Makefile settings for a machine running Ubuntu 8.04 +# +# AUTHOR: Rick Wagner (rick@ucsd.edu) +# +# DATE: 2008-09-16 +# +# This configuration assumes that build-essentials, gfortran, +# OpenMPI and HDF5 have been installed using apt-get. +# +#======================================================================= + +MACH_TEXT = Georgia Tech HIVE (INTEL) +MACH_VALID = 1 +MACH_FILE = Make.mach.hive-intel + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(HOME)/usr/local/ +#LOCAL_HDF5_INSTALL = /storage/home/hhive1/jw254/local/ +#LOCAL_HDF5_INSTALL = /usr/local/pacerepov1/hdf5/1.8.19/mvapich2-2.1/intel-15.0 + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = mpiicc # C compiler +MACH_CXX_NOMPI = mpiicpc # C++ compiler +MACH_FC_NOMPI = mpiifort # Fortran 77 +MACH_F90_NOMPI = mpiifort # Fortran 90 +MACH_LD_NOMPI = mpiicc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +MACH_DEFINES = -DLINUX -DH5_USE_16_API -fPIC + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = -132 +MACH_F90FLAGS = +MACH_LDFLAGS = -lifcore -lifport -lpthread -ldl + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 -lz # HDF5 libraries +LOCAL_LIBS_MACH = -lgfortran # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.kiken b/src/clib/Make.mach.kiken new file mode 100644 index 00000000..89295be4 --- /dev/null +++ b/src/clib/Make.mach.kiken @@ -0,0 +1,100 @@ +#======================================================================= +# +# FILE: Make.mach.kiken +# +# DESCRIPTION: Makefile settings for a machine running in BlueWater +# +# AUTHOR: Junwhan Choi +# +# DATE: 2014-07-26 +# +# This configuration using Cray compiler and BW HDF5 +# Note: BW requires static library. Also need to set "make shared-no" +#======================================================================= + +MACH_TEXT = YITP +MACH_VALID = 1 +MACH_FILE = Make.mach.kiken + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_PACKAGES = /home/uchu/gen.chiaki/usr/local/ +LOCAL_HDF5_INSTALL = /home/uchu/gen.chiaki/usr/local/ + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = icc # C compiler +MACH_CXX_NOMPI = icpc # C++ compiler +MACH_FC_NOMPI = ifort # Fortran 77 +MACH_F90_NOMPI = ifort # Fortran 90 +MACH_LD_NOMPI = icc # Linker + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- +MACH_DEFINES = -DLINUX -DH5_USE_16_API -fPIC + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = +MACH_F90FLAGS = +MACH_LDFLAGS = + +#----------------------------------------------------------------------- +# Precision-related flags +#----------------------------------------------------------------------- + +MACH_FFLAGS_INTEGER_32 = +MACH_FFLAGS_INTEGER_64 = -s integer64 +MACH_FFLAGS_REAL_32 = -s real32 -s default64 +MACH_FFLAGS_REAL_64 = -s real64 -s default64 + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes +#LOCAL_INCLUDES_HDF5 = -I$(HDF5_INCLUDE_OPTS) + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 -lz # HDF5 libraries +#LOCAL_LIBS_MACH = -lgfortran # Machine-dependent libraries +#LOCAL_LIBS_HDF5 = -lhdf5 +LOCAL_LIBS_MACH = + + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +#MACH_INSTALL_PREFIX = $(HOME)/local +MACH_INSTALL_PREFIX = $(LOCAL_PACKAGES) +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = + +MACH_LIBTOOL = /usr/bin/libtool diff --git a/src/clib/Make.mach.sdsc-comet b/src/clib/Make.mach.sdsc-comet new file mode 100644 index 00000000..cef23465 --- /dev/null +++ b/src/clib/Make.mach.sdsc-comet @@ -0,0 +1,93 @@ +#======================================================================= +# +# FILE: Make.mach.tacc-stampede-intel +# +# DESCRIPTION: TACC Stampede Makefile +# Written by Cameron Hummels, Jan 14 +# Edited by Gabriel Altay, Sept 14 +# +#======================================================================= + +MACH_TEXT = Comet +MACH_VALID = 0 +MACH_FILE = Make.mach.sdsc-comet + +# Make sure to have the intel module loaded: +# $ module load intel + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = /opt/hdf5/1.10.3/intel/mvapich2_ib +LOCAL_FC_INSTALL = /opt/intel/composer_xe_2013_sp1.2.144/compiler + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CPP = /usr/bin/cpp # C preprocessor command + +# Compilers +MACH_CC_NOMPI = mpicc # C compiler +MACH_CXX_NOMPI = mpicxx # C++ compiler +MACH_FC_NOMPI = ifort # Fortran 77 +MACH_F90_NOMPI = ifort # Fortran 90 +MACH_LD_NOMPI = mpicc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +# Note: When compiling against HDF5 version 1.8 or greater, you need to +# compile HDF5 with --with-default-api-version=v16, or specify with +# -DH5_USE_16_API. + +MACH_DEFINES = -DLINUX -DH5_USE_16_API + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_CPPFLAGS = -P -traditional # C preprocessor flags +MACH_CFLAGS = -mp1 -prec_div -fp_port -align # C compiler flags +MACH_CXXFLAGS = -mp1 -prec_div -fp_port -align # C++ compiler flags +MACH_FFLAGS = # Fortran 77 compiler flags +MACH_F90FLAGS = -mp1 -prec_div -fp_port -align -save -zero # Fortran 90 compiler flags +MACH_LDFLAGS = -lifcore -lifport -lpthread -ldl # Linker flags + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = # Flags for verbose compiler warnings +MACH_OPT_DEBUG = -g -O0 # Flags for debugging +MACH_OPT_HIGH = -O2 # Flags for high conservative optimization +MACH_OPT_AGGRESSIVE = -O3 -Mfptrap -Mflushz -fastsse -Mdaz -Mnontemporal -Mnofprelaxed -Mvect=altcode,assoc,prefetch -Kieee # 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)/lib -lhdf5 # HDF5 libraries +LOCAL_LIBS_MACH = -L$(LOCAL_FC_INSTALL) -lm -lifcore -lifport # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +# if $(HOME)/local does not exist, mkdir before `make install` + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.tacc-frontera-intel b/src/clib/Make.mach.tacc-frontera-intel new file mode 100644 index 00000000..b1d39114 --- /dev/null +++ b/src/clib/Make.mach.tacc-frontera-intel @@ -0,0 +1,98 @@ +#======================================================================= +# +# FILE: Make.mach.tacc-stampede-intel +# +# DESCRIPTION: TACC Stampede Makefile +# Written by Cameron Hummels, Jan 14 +# Edited by Gabriel Altay, Sept 14 +# +#======================================================================= + +MACH_TEXT = Frontera +MACH_VALID = 0 +MACH_FILE = Make.mach.tacc-frontera-intel + +# Make sure to have the intel module loaded: +# $ module load intel + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(TACC_HDF5_DIR) +LOCAL_FC_INSTALL = $(TACC_INTEL_LIB) + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CPP = /usr/bin/cpp # C preprocessor command + +# Compilers +MACH_CC_NOMPI = icc # C compiler +MACH_CXX_NOMPI = icpc # C++ compiler +MACH_FC_NOMPI = ifort # Fortran 77 +MACH_F90_NOMPI = ifort # Fortran 90 +MACH_LD_NOMPI = icpc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +# Note: When compiling against HDF5 version 1.8 or greater, you need to +# compile HDF5 with --with-default-api-version=v16, or specify with +# -DH5_USE_16_API. + +MACH_DEFINES = -DLINUX -DH5_USE_16_API + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_OMPFLAGS = # OpenMP flags +MACH_CPPFLAGS = -P -traditional # C preprocessor flags +MACH_CFLAGS = -mp1 -prec_div -fp_port -align # C compiler flags +MACH_CXXFLAGS = -mp1 -prec_div -fp_port -align # C++ compiler flags +MACH_FFLAGS = # Fortran 77 compiler flags +MACH_F90FLAGS = -mp1 -prec_div -fp_port -align -save -zero # Fortran 90 compiler flags +MACH_LDFLAGS = -lifcore -lifport -lpthread -ldl # Linker flags + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = # Flags for verbose compiler warnings +MACH_OPT_DEBUG = -g -O0 # Flags for debugging +MACH_OPT_HIGH = -O2 -xCORE-AVX2 +# use -xMIC-AVX512 (without -xCORE-AVX2) to build for KNL nodes +# use -xCORE-AVX512 (without -xCORE-AVX2) to build for SKX nodes +# use -xCORE-AVX2 -axCORE-AVX512,MIC-AVX512 to build a single binary for both +# node types that dispatches optimal code path at execution +MACH_OPT_AGGRESSIVE = -O3 -xCORE-AVX2 -Mfptrap -Mflushz -fastsse -Mdaz -Mnontemporal -Mnofprelaxed -Mvect=altcode,assoc,prefetch -Kieee # 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)/lib -lhdf5 # HDF5 libraries +LOCAL_LIBS_MACH = -L$(LOCAL_FC_INSTALL) -lm -lifcore -lifport # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +# if $(HOME)/local does not exist, mkdir before `make install` + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.tacc-stampede2-intel b/src/clib/Make.mach.tacc-stampede2-intel new file mode 100644 index 00000000..dab92d9f --- /dev/null +++ b/src/clib/Make.mach.tacc-stampede2-intel @@ -0,0 +1,98 @@ +#======================================================================= +# +# FILE: Make.mach.tacc-stampede-intel +# +# DESCRIPTION: TACC Stampede Makefile +# Written by Cameron Hummels, Jan 14 +# Edited by Gabriel Altay, Sept 14 +# +#======================================================================= + +MACH_TEXT = Stampede +MACH_VALID = 0 +MACH_FILE = Make.mach.tacc-stampede-intel + +# Make sure to have the intel module loaded: +# $ module load intel + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(TACC_HDF5_DIR) +LOCAL_FC_INSTALL = $(TACC_INTEL_LIB) + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CPP = /usr/bin/cpp # C preprocessor command + +# Compilers +MACH_CC_NOMPI = icc # C compiler +MACH_CXX_NOMPI = icpc # C++ compiler +MACH_FC_NOMPI = ifort # Fortran 77 +MACH_F90_NOMPI = ifort # Fortran 90 +MACH_LD_NOMPI = icpc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +# Note: When compiling against HDF5 version 1.8 or greater, you need to +# compile HDF5 with --with-default-api-version=v16, or specify with +# -DH5_USE_16_API. + +MACH_DEFINES = -DLINUX -DH5_USE_16_API + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_OMPFLAGS = # OpenMP flags +MACH_CPPFLAGS = -P -traditional # C preprocessor flags +MACH_CFLAGS = -mp1 -prec_div -fp_port -align # C compiler flags +MACH_CXXFLAGS = -mp1 -prec_div -fp_port -align # C++ compiler flags +MACH_FFLAGS = # Fortran 77 compiler flags +MACH_F90FLAGS = -mp1 -prec_div -fp_port -align -save -zero # Fortran 90 compiler flags +MACH_LDFLAGS = -lifcore -lifport -lpthread -ldl # Linker flags + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = # Flags for verbose compiler warnings +MACH_OPT_DEBUG = -g -O0 # Flags for debugging +MACH_OPT_HIGH = -O2 -xCORE-AVX2 +# use -xMIC-AVX512 (without -xCORE-AVX2) to build for KNL nodes +# use -xCORE-AVX512 (without -xCORE-AVX2) to build for SKX nodes +# use -xCORE-AVX2 -axCORE-AVX512,MIC-AVX512 to build a single binary for both +# node types that dispatches optimal code path at execution +MACH_OPT_AGGRESSIVE = -O3 -xCORE-AVX2 -Mfptrap -Mflushz -fastsse -Mdaz -Mnontemporal -Mnofprelaxed -Mvect=altcode,assoc,prefetch -Kieee # 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)/lib -lhdf5 # HDF5 libraries +LOCAL_LIBS_MACH = -L$(LOCAL_FC_INSTALL) -lm -lifcore -lifport # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +# if $(HOME)/local does not exist, mkdir before `make install` + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR = diff --git a/src/clib/Make.mach.win10 b/src/clib/Make.mach.win10 new file mode 100644 index 00000000..dea49cd0 --- /dev/null +++ b/src/clib/Make.mach.win10 @@ -0,0 +1,87 @@ +#======================================================================= +# +# FILE: Make.mach.linux-gnu +# +# DESCRIPTION: Makefile settings for a machine running Ubuntu +# +# AUTHOR: Rick Wagner (rick@ucsd.edu) +# +# DATE: 2008-09-16 +# +# This configuration assumes that build-essentials, gfortran, +# OpenMPI and HDF5 have been installed using apt-get. +# +#======================================================================= + +MACH_TEXT = Use apt-get to install libhdf5-serial-dev gfortran +MACH_VALID = 1 +MACH_FILE = Make.mach.linux-gnu + +#----------------------------------------------------------------------- +# Install paths (local variables) +#----------------------------------------------------------------------- + +LOCAL_HDF5_INSTALL = $(HOME)/usr/local + +#----------------------------------------------------------------------- +# Compiler settings +#----------------------------------------------------------------------- + +MACH_CC_NOMPI = gcc # C compiler +MACH_CXX_NOMPI = g++ # C++ compiler +MACH_FC_NOMPI = gfortran # Fortran 77 +MACH_F90_NOMPI = gfortran # Fortran 90 +MACH_LD_NOMPI = gcc # Linker +MACH_LIBTOOL = libtool + +#----------------------------------------------------------------------- +# Machine-dependent defines +#----------------------------------------------------------------------- + +MACH_DEFINES = -DLINUX -DH5_USE_16_API -fPIC + +#----------------------------------------------------------------------- +# Compiler flag settings +#----------------------------------------------------------------------- + +MACH_OMPFLAGS = #-fopenmp +MACH_CPPFLAGS = -P -traditional +MACH_CFLAGS = +MACH_CXXFLAGS = +MACH_FFLAGS = -fno-second-underscore -ffixed-line-length-132 +MACH_F90FLAGS = -fno-second-underscore +MACH_LDFLAGS = + +#----------------------------------------------------------------------- +# Optimization flags +#----------------------------------------------------------------------- + +MACH_OPT_WARN = -Wall -g +MACH_OPT_DEBUG = -g +MACH_OPT_HIGH = -O2 +MACH_OPT_AGGRESSIVE = -O3 -g + +#----------------------------------------------------------------------- +# Includes +#----------------------------------------------------------------------- + +LOCAL_INCLUDES_HDF5 = -I$(LOCAL_HDF5_INSTALL)/include # HDF5 includes + +MACH_INCLUDES = $(LOCAL_INCLUDES_HDF5) + +#----------------------------------------------------------------------- +# Libraries +#----------------------------------------------------------------------- + +LOCAL_LIBS_HDF5 = -L$(LOCAL_HDF5_INSTALL)/lib -lhdf5 -lz # HDF5 libraries +LOCAL_LIBS_MACH = -lgfortran # Machine-dependent libraries + +MACH_LIBS = $(LOCAL_LIBS_HDF5) $(LOCAL_LIBS_MACH) + +#----------------------------------------------------------------------- +# Installation +#----------------------------------------------------------------------- + +MACH_INSTALL_PREFIX = $(HOME)/usr/local +MACH_INSTALL_LIB_DIR = +MACH_INSTALL_INCLUDE_DIR =