Skip to content

Commit 254bfd6

Browse files
committed
added prompts
1 parent 2901ca6 commit 254bfd6

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

docs/HPC_GUIDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pip install numpy scipy matplotlib joblib
1919
2020
python3 pp_analysis.py --mode full --dry-run
2121
22+
# For async run
23+
24+
python3 pp_analysis.py --mode full --output results_${SLURM_JOB_ID} --cores $SLURM_CPUS_PER_TASK --async
25+
2226
# To submit a job
2327
2428
sbatch run_analysis.sh

docs/prompts.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ Made large changes to multiple functions. See git commit for details.
568568

569569
### Testing CA class
570570

571-
572571
1. Create a comprehensive testing suite for the CA and PP classes. Test initialization, async update changes, synchronous update changes, prey growth in isolation behavior, predator starvation, parameter evolution and long run dynamics. Also make sur ethe test_viz mehtod works as desired
573572

574573
### Parameter Sweep and PP Class Analysis
@@ -577,3 +576,8 @@ Made large changes to multiple functions. See git commit for details.
577576

578577
3. Create a config class adjustable depending on the CPU budget. We want to run a prey_birth vs. predator_death parameter sweep (2D), quantify the hydra effect using the derivative, search for the critical point (power law relartionship paramameter), quantify evolution sensitivity and analyze finite grid size scaling. Include script options for cost optimal runs as well. Make sure to have a summary of collected data stored for reference and future usage.
579578

579+
580+
4. Add configuration option to run the asynchronous version of the CA class. The synchronous functionality should also be preserved. Provide me with a small smoke test to see if the updated file runs as expected.
581+
582+
5. Create a minimal bash script for Snellius. Use the rome configiuration.
583+

pp_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def run_single_simulation(
256256
neighborhood="moore",
257257
params=params,
258258
seed=seed,
259-
syncrhonous = cfg.synchronous # Use synchronous/async updates
259+
synchronous = cfg.synchronous # Use synchronous/async updates
260260
)
261261

262262
if with_evolution:

run_analysis.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#SBATCH --nodes=1
55
#SBATCH --ntasks=1
66
#SBATCH --cpus-per-task=32
7-
#SBATCH --time=04:00:00
7+
#SBATCH --time=08:00:00
88
#SBATCH --mem=32G
99
#SBATCH --output=pp_analysis_%j.out
1010
#SBATCH --error=pp_analysis_%j.err
@@ -40,7 +40,6 @@ echo "========================================"
4040
# Environment Setup
4141
# -----------------------------------------------------------------------------
4242

43-
# Load modules (adjust to your Snellius setup)
4443
# Load modules (adjust to your Snellius setup)
4544
source ~/snellius_venv/bin/activate
4645

@@ -70,6 +69,9 @@ python3 pp_analysis.py \
7069
--output $OUTPUT_DIR \
7170
--cores $SLURM_CPUS_PER_TASK
7271

72+
# For asynchronous execution (uncomment if needed)
73+
#python3 pp_analysis.py --mode full --output $OUTPUT_DIR --cores $SLURM_CPUS_PER_TASK --async
74+
7375
# -----------------------------------------------------------------------------
7476
# Completion
7577
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)