calcoloscientifico:userguide:apptainer
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
calcoloscientifico:userguide:apptainer [20/02/2023 18:33] – fabio.spataro | calcoloscientifico:userguide:apptainer [14/01/2025 13:00] (versione attuale) – [Apptainer] fabio.spataro | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ==== Apptainer ==== | + | ===== Apptainer |
- | [[https:// | + | * [[https:// |
+ | * [[https:// | ||
Apptainer is already available on the HPC cluster. | Apptainer is already available on the HPC cluster. | ||
Linea 7: | Linea 8: | ||
Users are encouraged to use it on their system. | Users are encouraged to use it on their system. | ||
- | === Install a binary package === | + | ==== Install a binary package |
These instructions are intended for users who wish to install Apptainer on their Linux system. | These instructions are intended for users who wish to install Apptainer on their Linux system. | ||
Linea 14: | Linea 15: | ||
< | < | ||
- | yum install https:// | + | yum install https:// |
</ | </ | ||
Linea 20: | Linea 21: | ||
< | < | ||
- | sudo apt install | + | wget -qc https:// |
+ | sudo dpkg -i apptainer_1.1.8_amd64.deb | ||
</ | </ | ||
- | === Extract NVIDIA driver === | + | ==== Extract NVIDIA driver |
The following commands | The following commands | ||
Linea 41: | Linea 43: | ||
</ | </ | ||
- | === Apptainer on a worker node with CPU === | + | ==== Apptainer on a worker node with CPU ==== |
On the login node of the HPC cluster run the following command: | On the login node of the HPC cluster run the following command: | ||
Linea 127: | Linea 129: | ||
Users who have installed a binary package do not have to load the '' | Users who have installed a binary package do not have to load the '' | ||
+ | |||
+ | ===== Apptainer containers ===== | ||
+ | |||
+ | ==== Bacterial Genomics software collection ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | <code bash slurm-bactgen.sh> | ||
+ | #!/bin/bash | ||
+ | #SBATCH --job-name=bactgen | ||
+ | #SBATCH --output=%x.o%j | ||
+ | #SBATCH --error=%x.e%j | ||
+ | #SBATCH --nodes=1 | ||
+ | #SBATCH --ntasks-per-node=1 | ||
+ | #SBATCH --cpus-per-task=4 | ||
+ | #SBATCH --time=0-01: | ||
+ | #SBATCH --mem=8G | ||
+ | #SBATCH --partition=cpu | ||
+ | #SBATCH --qos=cpu | ||
+ | #SBATCH --account=< | ||
+ | |||
+ | module load apptainer | ||
+ | module load bactgen | ||
+ | |||
+ | apptainer run " | ||
+ | echo ' | ||
+ | apptainer run " | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | Edit the '' | ||
+ | |||
+ | <code bash> | ||
+ | sbatch slurm-bactgen.sh | ||
+ | </ | ||
calcoloscientifico/userguide/apptainer.1676914395.txt.gz · Ultima modifica: 20/02/2023 18:33 da fabio.spataro