-
Notifications
You must be signed in to change notification settings - Fork 35
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 vlct-cosmology
- Loading branch information
Showing
157 changed files
with
2,069 additions
and
9,879 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,75 @@ | ||
import os | ||
from _common_search_paths import charm_path_search, grackle_path_search | ||
|
||
is_arch_valid = 1 | ||
use_gfortran = 0 | ||
smp = 0 | ||
|
||
flags_arch = '-Wall -O3 -g' | ||
#flags_arch = '-fprofile-arcs -ftest-coverage' | ||
#flags_arch = '-Wall -g' | ||
#flags_arch = '-Wall -g -fsanitize=address -fno-omit-frame-pointer' | ||
#flags_arch = '-Wall -O3 -pg' | ||
|
||
# rdynamic required for backtraces | ||
#flags_link_charm = '-rdynamic' | ||
#flags_link_charm = '-memory paranoid' | ||
|
||
intel_dir = '/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen/gcc-8.3.1/intel-19.1.1.217-4d42ptjd6wsnh5bgbzcv6lp44vxpjwut/compilers_and_libraries_2020.1.217/linux/bin/intel64' | ||
cc = intel_dir + '/icc' | ||
f90 = intel_dir + '/ifort' | ||
|
||
flags_prec_single = '' | ||
flags_prec_double = '-r8' | ||
|
||
libpath_fortran = '/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen/gcc-8.3.1/intel-19.1.1.217-4d42ptjd6wsnh5bgbzcv6lp44vxpjwut/compilers_and_libraries_2020.1.217/linux/compiler/lib/intel64' | ||
libs_fortran = ['ifcore', 'ifport'] | ||
|
||
|
||
#USE GFORTRAN INSTEAD OF IFORT | ||
if use_gfortran: | ||
f90 = 'gfortran' | ||
libpath_fortran = '/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen/gcc-8.3.1/gcc-10.2.0-n7su7jf54rc7l2ozegds5xksy6qhrjin/lib64' | ||
libs_fortran = ['gfortran'] | ||
flags_arch_fortran = '-ffixed-line-length-132' | ||
flags_prec_double = '-fdefault-real-8 -fdefault-double-8' | ||
flags_arch = '-O3 -Wall' | ||
flags_fc = '' | ||
|
||
############################# | ||
|
||
home = os.getenv('HOME') | ||
|
||
charm_path = charm_path_search(home) | ||
|
||
use_papi=0 | ||
papi_inc = '/usr/local/include' | ||
papi_lib = '/usr/local/lib' | ||
|
||
boost_path = os.getenv('BOOST_HOME') | ||
boost_inc = boost_path + '/include' | ||
boost_lib = boost_path + '/lib' | ||
|
||
hdf5_inc = os.getenv('HDF5HOME') + '/include' | ||
if hdf5_inc is None: | ||
if os.path.exists('/usr/include/hdf5.h'): | ||
hdf5_inc = '/usr/include' | ||
elif os.path.exists('/usr/include/hdf5/serial/hdf5.h'): | ||
hdf5_inc = '/usr/include/hdf5/serial' | ||
else: | ||
raise Exception('HDF5 include file was not found. Try setting the HDF5_INC environment variable such that $HDF5_INC/hdf5.h exists.') | ||
|
||
hdf5_lib = os.getenv('HDF5HOME') + '/lib' | ||
if hdf5_lib is None: | ||
if os.path.exists('/usr/lib/libhdf5.a'): | ||
hdf5_lib = '/usr/lib' | ||
elif os.path.exists('/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a'): | ||
hdf5_lib = '/usr/lib/x86_64-linux-gnu/hdf5/serial' | ||
else: | ||
raise Exception('HDF5 lib file was not found. Try setting the HDF5_LIB environment variable such that $HDF5_LIB/libhdf5.a exists.') | ||
|
||
png_path = os.getenv('LIBPNG_HOME') | ||
if png_path is None: | ||
png_path = '/lib/x86_64-linux-gnu' | ||
|
||
grackle_path = os.getenv('GRACKLE_HOME') |
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,37 @@ | ||
# Machine configs are included twice. | ||
# First to set compilers, paths, default options. | ||
# Second to set dependent options (e.g., also depending on defaults set in the main CMakeLists.txt) | ||
if(NOT __processedUserDefaults) | ||
|
||
message(STATUS "Loading machine configuration for HLRN-IV supercomputer.\n" | ||
"This configuration has been tested using the following modules (last verified 2022-06-16):\n" | ||
"$ module load gcc/9.3.0 openmpi/gcc.9/3.1.5 hdf5/gcc.9/1.12.0 libpng/1.6.37 boost/1.72.0\n" | ||
"and with Charm++ configured as follows:\n" | ||
"$ cmake -DNETWORK=mpi -DSMP=OFF -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 ..\n" | ||
"Note: set PNG_ROOT to LIBPNG_PATH using -D or export.\n") | ||
|
||
set(CMAKE_CXX_COMPILER mpicxx CACHE STRING "") | ||
set(CMAKE_C_COMPILER mpicc CACHE STRING "") | ||
set(CMAKE_Fortran_COMPILER mpif90 CACHE STRING "") | ||
set(CMAKE_Fortran_FLAGS "-ffixed-line-length-132" CACHE STRING "Default Fortran flags") | ||
|
||
# add optional flags to C and C++ compilers that provide useful warnings | ||
#set(CMAKE_C_FLAGS "-Wall" CACHE STRING "Default C flags") | ||
#set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "Default C++ flags") | ||
|
||
# these flag(s) are currently only used when using openmp-simd optimizations | ||
# (to specify available/prefered instruction sets). | ||
# This particular value tells the compiler to optimize the code for the | ||
# instruction set of the machine used to compile the code. | ||
set(CONFIG_ARCH_FLAGS "-march=skylake-avx512") | ||
|
||
# Mark done | ||
set(__processedUserDefaults ON) | ||
|
||
else() | ||
|
||
if (USE_DOUBLE_PREC) | ||
string(APPEND CMAKE_Fortran_FLAGS " -fdefault-real-8 -fdefault-double-8") | ||
endif() | ||
|
||
endif() |
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
Binary file added
BIN
+53.5 KB
doc/source/project/gravity_solver_optimization/64_msg_number_histo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+429 KB
doc/source/project/gravity_solver_optimization/Overview_256g_8b_32PE.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+176 KB
doc/source/project/gravity_solver_optimization/graph_time-p-cycle_all-PE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.