forked from gamer-project/gamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into microphysics
* main: (65 commits) Minor Minor Add comments Add execute premission check Bugfix string length Apply suggestions from code review [Workflow] Update all parameters wiki page Update output format Update description Load Opt__Output_Text_Length_Int when restert Rename DUMP_DIR to OUTPUT_DIR [Workflow] Update all parameters wiki page Let OUTPUT_DIR shorter Add file premission check Fix file path Remove useless variable Fix Input__Note output Update missed filename Rename DUMP_DIR to OUTPUT_DIR Apply suggestions from code review ...
- Loading branch information
Showing
101 changed files
with
838 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#======================================================================= | ||
# | ||
# FILE: Make.mach.eureka-intel | ||
# | ||
# DESCRIPTION: Makefile for the calab-ntu Eureka GPU cluster with Intel | ||
# compiler and OpenMP support | ||
# | ||
# AUTHOR: Hsi-Yu Schive (modified by Guan-Ming Su, Barry T. Chiang, | ||
# and Chun-Yen Chen) | ||
# | ||
# DATE: April 1, 2016 (August 28, 2024) | ||
#======================================================================= | ||
|
||
MACH_TEXT = Eureka Intel | ||
MACH_VALID = 0 | ||
MACH_FILE = Make.mach.eureka-intel | ||
|
||
#----------------------------------------------------------------------- | ||
# Install paths (local variables) | ||
#----------------------------------------------------------------------- | ||
|
||
LOCAL_HDF5_INSTALL = /software/hdf5/default | ||
LOCAL_FC_INSTALL = /software/intel/oneapi/compiler/default/linux/compiler/lib/intel64 | ||
|
||
#----------------------------------------------------------------------- | ||
# Compiler settings | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_CPP = icpc # 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 = -fopenmp # 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 # 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` | ||
|
||
### Use this when make omp-on is set | ||
MACH_INSTALL_PREFIX = <local_grackle_directory>/grackle_eureka_double_omp | ||
### Use this when make omp-off is set | ||
#MACH_INSTALL_PREFIX = <local_grackle_directory>/grackle_eureka_double_no_omp | ||
MACH_INSTALL_LIB_DIR = | ||
MACH_INSTALL_INCLUDE_DIR = |
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,97 @@ | ||
#======================================================================= | ||
# | ||
# FILE: Make.mach.spock-intel | ||
# | ||
# DESCRIPTION: Makefile for the calab-ntu Spock GPU cluster with Intel | ||
# compiler and OpenMP support | ||
# | ||
# AUTHOR: Hsi-Yu Schive (modified by Guan-Ming Su, Barry T. Chiang, | ||
# and Chun-Yen Chen) | ||
# | ||
# DATE: April 1, 2016 (August 28, 2024) | ||
#======================================================================= | ||
|
||
MACH_TEXT = Spock Intel | ||
MACH_VALID = 0 | ||
MACH_FILE = Make.mach.spock-intel | ||
|
||
#----------------------------------------------------------------------- | ||
# Install paths (local variables) | ||
#----------------------------------------------------------------------- | ||
|
||
LOCAL_HDF5_INSTALL = /software/hdf5/1.10.6-intel-2023.1.0 | ||
LOCAL_FC_INSTALL = /software/intel/oneapi/compiler/latest/linux/compiler/lib/intel64 | ||
|
||
#----------------------------------------------------------------------- | ||
# Compiler settings | ||
#----------------------------------------------------------------------- | ||
|
||
MACH_CPP = icpc # 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 = -fopenmp # 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 # 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` | ||
|
||
### Use this when make omp-on is set | ||
MACH_INSTALL_PREFIX = <local_grackle_directory>/grackle_spock_double_omp | ||
### Use this when make omp-off is set | ||
#MACH_INSTALL_PREFIX = <local_grackle_directory>/grackle_spock_double_no_omp | ||
MACH_INSTALL_LIB_DIR = | ||
MACH_INSTALL_INCLUDE_DIR = |
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,15 @@ | ||
First-time GRACKLE installation guide (on calab-ntu gpu-clusters as an example): | ||
======================================== | ||
1. First download the source code by executing "git clone https://github.com/grackle-project/grackle" | ||
2. Next navigate to "cd grackle". The required UVB interpolation tables can be downloaded via "git submodule update --init" | ||
3. Next navigate to "./configure; cd src/clib" | ||
4. Copy into the config files "Make.mach.eureka-intel" or "Make.mach.spock-intel" (from the directory "<your_gamer_directory>/example/grackle/") and change the prefix: "MACH_INSTALL_PREFIX = <your_grackle_directory>/grackle_spock_double_omp" in "Make.mach.spock-intel" to the path you wish to install the package | ||
5. Next execute "make clean; make machine-spock-intel" or "make clean; make machine-eureka-intel" | ||
6. Next execute "make precision-64" (double precision is recommended for GRACKLE) and "make omp-on" (GAMER does utilize OpenMP) | ||
7. Next execute "make show-config" to verify "CONFIG_PRECISION: 64" and "CONFIG_OMP: on" | ||
8. Next execute "make save-config-gamer" (save this GAMER-spock specific config setting) and "make load-config-gamer" (load this GAMER-spock specific config setting) | ||
9. Lastly for code compilation, execute "make -j 4; make install" | ||
10. To compile the corresponding gamer executable: | ||
(1) Add the path "GRACKLE_PATH <your_grackle_directory>/grackle_spock_double_omp" to "<your_gamer_directory>/configs/spock_intel.config" | ||
(2) Copy "generate_make.sh" from the AGORA test problem and change "--machine=spock_intel" in that file, and then execute "sh generate_make.sh" | ||
(3) Generate a gamer executable via "make clean; make -j 4" |
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
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
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
Oops, something went wrong.