Skip to content

Commit

Permalink
Update docs/run.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Dec 25, 2023
1 parent 468ec0d commit 46ea258
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ mpiexec -n 5 path/to/hdspin -N 20 -l EREM -b 2.5 -t 6 -n 100 --seed=123

which will run the exponential random energy model with 20 spins with inverse temperature `beta=2.5`, for `1e6` timesteps and 100 tracers (with seed 123 for reproducibility). The job will be split amongst 4 compute tasks with a single controller task (for 5 total).

Here is an example SLURM script if you're running hdspin on a high-performance computing cluster that uses SLURM (obviously you'll have to replace a few things):

```bash
#!/bin/bash
#SBATCH --account=<ACCOUNT_NAME>
#SBATCH --partition=<PARTITION_NAME>
#SBATCH --nodes=1
#SBATCH --ntasks=<CPUS_PER_NODE>
#SBATCH --cpus-per-task=1
#SBATCH --time=12:00:00
#SBATCH --job-name=hdsspin

module load gcc/13.2.0
module load openmpi
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
srun -n 48 /path/to/build/hdspin -N 64 -l EREM -b 4.000 -t 7 -n 500 -d auto --seed=123

exit
```


# Post-processing

Expand Down

0 comments on commit 46ea258

Please sign in to comment.