-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from streeve/ci_run
Install and run small example in CI
- Loading branch information
Showing
2 changed files
with
151 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -53,5 +53,9 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Build | ||
run: | | ||
cmake -B build -DCMAKE_PREFIX_PATH="$HOME/Cabana" | ||
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/haccabana -DCMAKE_PREFIX_PATH="$HOME/Cabana" | ||
cmake --build build --parallel 2 | ||
cmake --install build | ||
- name: Run | ||
run: | | ||
OMP_PROC_BIND=false $HOME/haccabana/bin/driver_short-range -s -t 0 -c 064.indat.params |
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,146 @@ | ||
################################################################################ | ||
# Header version information | ||
################################################################################ | ||
HACC_HEADER_VERSION 1.0.0 | ||
|
||
################################################################################ | ||
# Cosmological Parameters | ||
# Length scales are measured in Mpc/h | ||
# OMEGA_CDM and OMEGA_NU given for Omega_cdm and Omega_nu (no $h^2$) | ||
# DEUT=Omegab*h^2 | ||
# HUBBLE: Hubble constant/100 km/s/Mpc | ||
# SS8: target value for sigma_8 | ||
# NS: index of the primordial power spectrum | ||
# W_DE: constant dark energy equation of state | ||
# Currently flat Universe only | ||
################################################################################ | ||
OMEGA_CDM 0.26067 | ||
DEUT 0.02242 | ||
OMEGA_NU 0.0 | ||
HUBBLE 0.6766 | ||
SS8 0.8102 | ||
NS 0.9665 | ||
W_DE -1.0 | ||
WA_DE 0.0 | ||
T_CMB 2.726 | ||
N_EFF_MASSLESS 3.04 | ||
N_EFF_MASSIVE 0.0 | ||
|
||
################################################################################ | ||
# Initializer Set-up and read-ins | ||
# ZIN: Starting redshift | ||
# USE_WHITE_NOISE_INIT: YES: real space, NO: k space | ||
# input type: INIT|RECORD|BLOCK|COSMO|RESTART | ||
# INIT: generates internal initial conditions, rest if for read-ins | ||
# distrib. type: ROUND_ROBIN|ALL_TO_ALL|ONE_TO_ONE|restart_step | ||
# (ignored if INPUT_TYPE is INIT) | ||
# ROUND_ROBIN indicates particles must be looked at by all processors | ||
# ONE_TO_ONE indicates that particles physically reside on matching processor | ||
# ALL_TO_ALL improved ROUND_ROBIN | ||
# For restart: specify time step and modify INPUT_BASE_NAME | ||
# TRANS: Transfer function: Read in CAMB file (specify name in INPUT_BASE_NAME) | ||
# or internal TF (KH, HS, PD, BBKS) | ||
################################################################################ | ||
Z_IN 200.0 | ||
USE_WHITE_NOISE_INIT YES | ||
TRANS CMB | ||
INPUT_BASE_NAME ./AMD/indat_params/cmbM000.tf | ||
INPUT_TYPE INIT | ||
DISTRIBUTE_TYPE LAST | ||
MAX_MINUTES 115 | ||
|
||
# COMMENT_ER | ||
# set a really high redshift to turn off subcycle | ||
SKIP_HIGHZ_INTEGRATION_CHECK YES | ||
PM_SUBCYCLE_REDSHIFT 1000.0 | ||
SKIP_SR_POTENTIAL YES | ||
SKIP_STREAM NO | ||
SKIP_SR_KICK NO | ||
|
||
################################################################################ | ||
# Outputs for initial conditions, alive particles, some analysis and restarts, refreshes | ||
# WRITE_IC: write initial condition, format will be the same as for all outputs | ||
# USE_MPI_IO: YES=one large file, NO=one file per rank in cosmo format | ||
# REFRESH: takes either explicit time steps or file name with time steps specified, | ||
# same is true for all other outputs besides FINAL_GRID and VIS_SLAB | ||
# which only happen at the end if commented in | ||
# SMALL_DUMP: prints all particles from rank 0 | ||
# OUTPUT_FRACTION: fraction of particles in alive dumps | ||
# VIS_STEP: prints uniform grid of full simulation in Insley format | ||
# FINAL_GRID_OUTPUT: ascii file! prints grid at last time step, only for small runs | ||
# VIZ_SLAB: prints slice of final grid in Insley format | ||
################################################################################ | ||
WRITE_IC NO | ||
USE_MPI_IO YES | ||
OUTPUT_BASE_NAME ./output/m000 | ||
REFRESH 10 11 12 | ||
ALIVE_DUMP | ||
OUTPUT_FRACTION 0.01 | ||
FULL_ALIVE_DUMP 4 | ||
SMALL_DUMP 0 | ||
RESTART_DUMP 10 | ||
PK_DUMP 10 | ||
#VIZ_STEP 30 | ||
FINAL_GRID_OUTPUT NO | ||
VIZ_SLAB 10 | ||
COMPRESS_OUTPUT YES | ||
|
||
################################################################################ | ||
# Code parameters I: essential parameters to specify the run/resolution | ||
# ISEED: random number for realizatio | ||
# NG: number of grid points (1d), NP: number of particles (1d) | ||
# RL: physical box size [h^(-1)Mpc] | ||
# Z_FIN: final redshift | ||
# Timestepper: N_STEPS: number of PM steps, N_SUB: number of sub-cycles (3-5) | ||
# OL: PM overload and refresh: 8 Mpc good choice, depends on overall volume | ||
# RSM: Tree smoothing scale, fraction of PM grid size | ||
# max RCB tree particles per leaf, ~100 optimal for BG/Q, ~24 for X86 | ||
################################################################################ | ||
I_SEED 5126873 | ||
NG 64 | ||
NP 64 | ||
RL 64.0 | ||
Z_FIN 50.0 | ||
N_STEPS 10 | ||
N_SUB 5 | ||
OL 8.0 | ||
ANALYSIS_OL 8.0 | ||
RSM 0.01 | ||
RCB_TREE_PPN 256 | ||
|
||
################################################################################ | ||
# Code parameters II: specifications for tree/memory etc., mostly unchanged | ||
# CM_SIZE: chaining mesh size, 3.12 good choice, should not be smaller | ||
# OPENING_ANGLE: tree code | ||
# EDGE: ??? | ||
# alpha, power of scale factor in timestepping | ||
# TOPOLOGY: allows user to pick 3d decomposition (=ranks), if commented out, | ||
# machine will pick it for you | ||
# BIGCHUNK: memory management, percent extra to allocate in bigchunk | ||
# USE_ALLV: important for N-to-N write, will not work on Mira at scale | ||
################################################################################ | ||
CM_SIZE 4.0 | ||
OPENING_ANGLE 0.1 | ||
EDGE 3.2 | ||
ALPHA 1.0 | ||
#TOPOLOGY 4x4x2 | ||
USE_BIGCHUNK NO | ||
BIGCHUNK_EXTRA_FACTOR 120 | ||
MEMORY_PADDING_DISPLACEMENT 5.0 | ||
USE_MONOPOLE_RCB_TREE YES | ||
USE_CHAINING_MESH YES | ||
#CHAINING_MESH_THREADS 28 | ||
CHAINING_MESH_THREADS 8 | ||
KERNEL_THREADS 1 | ||
CHAINING_MESH_PER_SUBCYCLE YES | ||
RCB_TREE_EXTRA_LEVELS 5 | ||
USE_ALLTOALLV YES | ||
USE_POLY YES | ||
|
||
################################################################################ | ||
# Analysis | ||
# Config file for analysis | ||
################################################################################ | ||
#COSMOTOOLS ON | ||
#COSMOTOOLS_CONFIG cosmotools-config.dat | ||
|