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 psidm-MoreHybridTests
- Loading branch information
Showing
228 changed files
with
2,110 additions
and
606 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ GAMER_ExtractProfile | |
.vscode | ||
src/Makefile | ||
src/Makefile.log | ||
src/.local_settings |
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,41 @@ | ||
# A "typical" macOS installation without GPU | ||
FFTW2_PATH /usr/local/fftw-2.1.5 | ||
MPI_PATH /usr/local/mpich-3.2 | ||
GSL_PATH /usr/local/gsl-1.16 | ||
HDF5_PATH ${HOME}/mambaforge/envs/py312 | ||
|
||
# compilers | ||
CXX clang++ | ||
CXX_MPI mpicxx | ||
|
||
# clang flags | ||
CXXFLAG -g | ||
CXXFLAG -O3 | ||
CXXFLAG -std=c++11 | ||
#CXXFLAG -Ofast | ||
CXXFLAG -Wall | ||
CXXFLAG -Wextra | ||
CXXFLAG -Wno-unused-variable | ||
CXXFLAG -Wno-unused-parameter | ||
CXXFLAG -Wno-uninitialized | ||
CXXFLAG -Wno-unused-but-set-variable | ||
CXXFLAG -Wno-unused-function | ||
CXXFLAG -Wno-unused-result | ||
CXXFLAG -Wno-implicit-fallthrough | ||
CXXFLAG -Wno-parentheses | ||
CXXFLAG -Wno-unknown-pragmas | ||
CXXFLAG -Wno-mismatched-tags | ||
CXXFLAG -Wno-deprecated-declarations | ||
CXXFLAG -Wno-missing-braces | ||
|
||
OPENMPFLAG -Xclang -fopenmp | ||
|
||
LIBFLAG -lomp | ||
|
||
NVCCFLAG_COM -O3 | ||
#NVCCFLAG_COM -use_fast_math | ||
NVCCFLAG_FLU -Xptxas -dlcm=ca -prec-div=false -ftz=true | ||
NVCCFLAG_POT -Xptxas -dlcm=ca | ||
|
||
#gpu | ||
GPU_COMPUTE_CAPABILITY -1 |
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
15 changes: 13 additions & 2 deletions
15
doc/wiki/Installation-related/Installation:-Machine-Configuration-File.md
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
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 = |
Oops, something went wrong.