# How do I use Singularity containers on an HPC cluster?

**URL:** <https://ask.cyberinfrastructure.org/t/how-do-i-use-singularity-containers-on-an-hpc-cluster/846>\
**Category:** Q&A\
**Tags:** containers, sge, gpu, singularity, cuda, researcher\
**Created:** [April 10, 2019, 8:24pm UTC](https://ask.cyberinfrastructure.org/t/how-do-i-use-singularity-containers-on-an-hpc-cluster/846 "2019-04-10T20:24:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdusell](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bdusell](https://ask.cyberinfrastructure.org/u/bdusell)\
**Post date:** [April 10, 2019, 8:24pm UTC](https://ask.cyberinfrastructure.org/t/how-do-i-use-singularity-containers-on-an-hpc-cluster/846/1 "2019-04-10T20:24:55Z")

</div>

How can I use Singularity containers to install and run software on my institution’s HPC cluster?

---

<div class="post-metadata">

**Author:** ![bdusell](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bdusell](https://ask.cyberinfrastructure.org/u/bdusell)\
**Post date:** [April 10, 2019, 8:28pm UTC](https://ask.cyberinfrastructure.org/t/how-do-i-use-singularity-containers-on-an-hpc-cluster/846/2 "2019-04-10T20:28:47Z")

</div>

Here is a tutorial for using Singularity on the CRC computing cluster at the University of Notre Dame, which uses the SGE job scheduling system. It serves as a general introduction to containers and may be applicable to other computing clusters as well. The tutorial walks you through the process of building a container and running a GPU-accelerated PyTorch program on a GPU node. It also has tips for managing Python packages efficiently.

> **[GitHub - bdusell/singularity-tutorial: Tutorial for using Singularity containers](https://github.com/bdusell/singularity-tutorial)**
>
> Tutorial for using Singularity containers. Contribute to bdusell/singularity-tutorial development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![raminder](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/r/58956e/32.png) [@raminder](https://ask.cyberinfrastructure.org/u/raminder)\
**Post date:** [April 19, 2019, 2:49pm UTC](https://ask.cyberinfrastructure.org/t/how-do-i-use-singularity-containers-on-an-hpc-cluster/846/3 "2019-04-19T14:49:16Z")

</div>

Singularity is available on compute nodes on Odyssey and user can using SBATCH or an interactive session in SLURM to their workflow using singularity. We also have documentation on how you can convert docker or other OCI containers to a singularity image and launch them. [https://www.rc.fas.harvard.edu/resources/documentation/software/singularity-on-odyssey/](https://www.rc.fas.harvard.edu/resources/documentation/software/singularity-on-odyssey/)
