Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
h7mumuj:start [2024/10/29 10:48] – asiodmok | h7mumuj:start [2024/10/30 10:34] (current) – [Install Herwig7] asiodmok | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Cyfronet ====== | ====== Cyfronet ====== | ||
- | == Applying for grant and access to Cluster == | + | ==== Applying for grant and access to Cluster |
+ | - Sign up at https:// | ||
+ | - Apply for grant and activate it at https:// | ||
+ | * **Note:** Access to the Ares cluster at the Cyfronet centre [grant required] | ||
+ | ==== Login to Ares ==== | ||
- | Sign up at https:// | + | '' |
- | Apply for grant and activate it at https:// | + | |
- | Access to the Ares cluster at the Cyfronet centre [grant required] | + | |
- | Login to cluster | + | < |
- | ssh < | + | '' |
- | < | + | ==== Storages ==== |
- | Install libraries/ | + | * $HOME |
+ | * $SCRATCH | ||
+ | * $PLG_GROUPS_STORAGE (starts with “plgg”) | ||
- | module avail : lists available libraries/ | + | '' |
- | module list : lists loaded libraries/ | + | ==== Install libraries/ |
- | module load < | + | < |
- | module spider < | + | < |
- | module purge : purges | + | < |
+ | < | ||
+ | < | ||
- | System utilities | + | ==== System utilities |
- | hpc-grants | + | < |
- | hpc-fs | + | < |
- | hpc-jobs | + | < |
- | hpc-jobs-history : shows information about past jobs | + | < |
- | Storages | + | ==== Install Herwig7 ==== |
- | $HOME | + | - Load necessary modules: < |
- | $SCRATCH | + | |
- | $PLG_GROUPS_STORAGE (starts with “plgg”) | + | module load libtool |
+ | module load emacs | ||
+ | module load gcc/ | ||
+ | module load gcccore/ | ||
+ | module load cmake/ | ||
+ | module load gsl/ | ||
+ | </ | ||
+ | - Move to $SCRATCH | ||
+ | - Download bootstrap script and make it executable: < | ||
+ | $ chmod +x herwig-bootstrap </ | ||
+ | - Start an interactive node session (Easier to debug if installation fails): < | ||
+ | - Run bootstrap and exit session when completed: < | ||
+ | [ares][username@ac0787 ~]$ exit </ | ||
+ | - More options for running bootstrap can be found with < | ||
+ | - Activate Herwig environment : < | ||
- | Install Herwig7 | + | ==== A sample run script (and common slurm commands) ==== |
+ | Run script (run.sh) : | ||
- | Load necessary modules | + | # |
- | module load python/ | + | # |
- | module load libtool | + | # |
- | module load emacs | + | #SBATCH --ntasks-per-node=1 |
- | module load gcc/11.2.0 | + | #SBATCH --cpus-per-task=1 |
- | module load gcccore/ | + | #SBATCH --mem-per-cpu=1GB |
- | module load cmake/ | + | # set wall time to 1 day |
- | Module load gsl/2.7-gcc-11.2.0 | + | # |
- | Download bootstrap script from https://herwig.hepforge.org/downloads.html | + | ## Name of partition |
- | Move to $SCRATCH or $PLG_GROUPS_STORAGE (preferred) and | + | # |
- | $./herwig-bootstrap | + | cd <Run directory> |
- | Activate Herwig environment : $ source Herwig/ | + | |
+ | export HW=Herwig | ||
+ | | ||
+ | HWPID=" | ||
+ | wait " | ||
- | A sample run script (and common slurm commands) | ||
- | run.sh : | + | ==== Run commands from CLI ==== |
- | #!/bin/bash | + | - Submit parallel jobs: < |
+ | * Suffix = cpu, cpu-bigmem, gpu | ||
+ | - '' | ||
+ | - '' | ||
+ | - Run interactive bash session: < | ||
- | #SBATCH --job-name=Sample_Run | + | ==== More Links ==== |
- | + | | |
- | #SBATCH --nodes=1 | + | - Slurm documentation - [[https:// |
- | #SBATCH --ntasks-per-node=1 | + | |
- | #SBATCH --cpus-per-task=1 | + | |
- | #SBATCH --mem-per-cpu=1GB | + | |
- | + | ||
- | # set wall time to 1 day | + | |
- | #SBATCH --time=1-00: | + | |
- | + | ||
- | ## Name of partition | + | |
- | ##SBATCH -p plgrid | + | |
- | + | ||
- | sleep $((RANDOM % 30)) | + | |
- | + | ||
- | cd <Run directory> | + | |
- | + | ||
- | source < | + | |
- | + | ||
- | export HW=Herwig | + | |
- | + | ||
- | ${HW} run *.run --seed=$seed -N 1000000 > /dev/null & | + | |
- | + | ||
- | HWPID=" | + | |
- | wait " | + | |
- | + | ||
- | Run commands from CLI - | + | |
- | Submit parallel jobs: sbatch --array=0-5 -A < | + | |
- | Suffix = cpu, cpu-bigmem, gpu | + | |
- | sprio: show status of pending jobs | + | |
- | sshare : show usage of available grants | + | |
- | + | ||
- | Run interactive bash session - | + | |
- | srun -p plgrid-now -t 1:00:00 --mem=1GB -A < | + | |
- | + | ||
- | + | ||
- | + | ||
- | Detailed information about Ares - https:// | + | |
- | + | ||
- | Slurm documentation - https:// | + | |