h7mumuj:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
h7mumuj:start [2024/10/29 11:13] asiodmokh7mumuj:start [2024/10/30 10:34] (current) – [Install Herwig7] asiodmok
Line 13: Line 13:
 <login> = username starting with "plg" <login> = username starting with "plg"
  
-==== Install libraries/packages using module ==== +''Add infor about ssh key''
- +
-  * module avail : lists available libraries/packages +
-  * module list : lists loaded libraries/packages +
-  * module load <package> : loads specified package +
-  * module spider <keyword> : searches available packages with the keyword +
-  * module purge : purges the environment +
- +
-==== System utilities ==== +
-  * hpc-grants : shows available grants, resource allocations, consumed resourced +
-  * hpc-fs : shows available storage +
-  * hpc-jobs : shows currently pending/running jobs +
-  * hpc-jobs-history : shows information about past jobs +
 ==== Storages ==== ==== Storages ====
  
Line 32: Line 19:
   * $SCRATCH   * $SCRATCH
   * $PLG_GROUPS_STORAGE (starts with “plgg”)   * $PLG_GROUPS_STORAGE (starts with “plgg”)
 +
 +''Add how to share files '' 
 +==== Install libraries/packages using module ====
 +<code>$ module avail</code> Lists all available libraries/packages
 +<code>$ module list</code> Lists loaded libraries/packages
 +<code>$ module load <package></code> Loads specified package
 +<code>$ module spider <keyword></code> Searches available packages with the keyword
 +<code>$ module purge</code> Purges the environment
 +
 +==== System utilities ====
 +<code>$ hpc-grants</code> Shows available grants, resource allocations, consumed resourced
 +<code>$ hpc-fs</code> Shows available storage
 +<code>$ hpc-jobs</code> Shows currently pending/running jobs
 +<code>$ hpc-jobs-history</code> : Shows information about past jobs
  
 ==== Install Herwig7 ==== ==== Install Herwig7 ====
  
-  - Load necessary modules +  - Load necessary modules<code> 
-        <code> +    module load python/2.7.18-gcccore-11.2.0 
-        module load python/2.7.18-gcccore-11.2.0 +    module load libtool 
-        module load libtool +    module load emacs 
-        module load emacs +    module load gcc/11.2.0 
-        module load gcc/11.2.0 +    module load gcccore/11.2.0 
-        module load gcccore/11.2.0 +    module load cmake/3.22.1-gcccore-11.2.0 
-        module load cmake/3.22.1-gcccore-11.2.0 +    module load gsl/2.7-gcc-11.2.0 
-        module load gsl/2.7-gcc-11.2.0 +     </code> 
-        </code> +   - Move to $SCRATCH or $PLG_GROUPS_STORAGE (preferred): <code> $ cd $PLG_GROUPS_STORAGE/<groupname> </code>  
-   - Download bootstrap script from [[https://herwig.hepforge.org/downloads.html]] +   - Download bootstrap script and make it executable: <code> $ wget https://herwig.hepforge.org/downloads/herwig-bootstrap 
-   Move to $SCRATCH or $PLG_GROUPS_STORAGE (preferred) and '' $ ./herwig-bootstrap -j4 $PWD/Herwig '' + $ chmod +x herwig-bootstrap </code> 
-   - Activate Herwig environment : '' $ source Herwig/bin/activate ''+   Start an interactive node session (Easier to debug if installation fails): <code> $ srun -p plgrid-now -t 5:00:00 --mem=5GB -A <grantname-cpu> --pty /bin/bash </code> **Note**: Only one interactive plgrid-now session can be run at a time. Adjust the session duration and memory allocation as required. The above specified parameters should suffice in general. 
 +   - Run bootstrap and exit session when completed: <code>[ares][username@ac0787 ~]$ ./herwig-bootstrap -j4 $PWD/Herwig 
 +[ares][username@ac0787 ~]$ exit </code> **Note**: The login01 node changes to ac0xxx when in a computing node. 
 +   - More options for running bootstrap can be found with <code> $ ./herwig-bootstrap --help </code> 
 +   - Activate Herwig environment : <code> $ source Herwig/bin/activate </code>
  
 ==== A sample run script (and common slurm commands) ==== ==== A sample run script (and common slurm commands) ====
-  - Run script (run.sh) :  +Run script (run.sh) :  
-       <code>+
        #!/bin/bash        #!/bin/bash
        #SBATCH --job-name=Sample_Run        #SBATCH --job-name=Sample_Run
Line 68: Line 73:
        HWPID="$!"        HWPID="$!"
        wait "${HWPID}"        wait "${HWPID}"
-       </code>+
  
 ==== Run commands from CLI ==== ==== Run commands from CLI ====
-  - Submit parallel jobs: ''$ sbatch --array=0-5 -A <grantname-suffix> run.sh'' +  - Submit parallel jobs: <code>$ sbatch --array=0-5 -A <grantname-suffix> run.sh</code> 
       * Suffix = cpu, cpu-bigmem, gpu       * Suffix = cpu, cpu-bigmem, gpu
   - ''sprio'': show status of pending jobs   - ''sprio'': show status of pending jobs
   - ''sshare'': show usage of available grants   - ''sshare'': show usage of available grants
-  - Run interactive bash session: ''$ srun -p plgrid-now -t 1:00:00 --mem=1GB -A <grantname-cpu> --pty /bin/bash''+  - Run interactive bash session: <code>$ srun -p plgrid-now -t 1:00:00 --mem=1GB -A <grantname-cpu> --pty /bin/bash</code>
  
 ==== More Links ==== ==== More Links ====
  • h7mumuj/start.1730200409.txt.gz
  • Last modified: 11 months ago
  • by asiodmok