Singularity (software) explained

Singularity
Author:Gregory Kurtzer (gmk), et al.
Developer:Community
Gregory Kurtzer
Latest Release Version:3.8.7
Latest Release Date:[1]
Programming Language:Go[2]
Operating System:Linux
Genre:Operating-system-level virtualization
License:3-clause BSD License[3]

Singularity is a free and open-source computer program that performs operating-system-level virtualization also known as containerization.[4]

One of the main uses of Singularity is to bring containers and reproducibility to scientific computing and the high-performance computing (HPC) world.[5]

The need for reproducibility requires the ability to use containers to move applications from system to system.[6]

Using Singularity containers, developers can work in reproducible environments of their choosing and design, and these complete environments can easily be copied and executed on other platforms.[7]

In 2021 the Singularity open source project split into two projects called Apptainer and SingularityCE.

History

Singularity began as an open-source project in 2015, when a team of researchers at Lawrence Berkeley National Laboratory, led by Gregory Kurtzer, developed the initial version written in the C programming language and released it[8] under the BSD license.[9]

By the end of 2016, many developers from different research facilities joined forces with the team at Lawrence Berkeley National Laboratory to further the development of Singularity.[10]

Singularity quickly attracted the attention of computing-heavy scientific institutions worldwide:[11]

For two years in a row, in 2016 and 2017, Singularity was recognized by HPCwire editors as "One of five new technologies to watch".[19] [20] In 2017 Singularity also won the first place for the category "Best HPC Programming Tool or Technology".

based on the data entered on a voluntary basis in a public registry, Singularity user base was estimated to be greater than 25,000 installations[21] and included users at academic institutions such as Ohio State University and Michigan State University, as well as top HPC centers like Texas Advanced Computing Center, San Diego Supercomputer Center, and Oak Ridge National Laboratory.

In February 2018 the Sylabs[22] company, founded by the Singularity author, was announced [23] to provide commercial support for Singularity. In October of that year Sylabs released version 3.0.0[24] which was a rewrite in the Go programming language.

Apptainer / Singularity split

In May 2020 Gregory Kurtzer left Sylabs but retained leadership of the Singularity open source project.[25] In May 2021 Sylabs made a fork of the project[26] and called it SingularityCE.[27] [28] In November 2021 the Singularity open source project joined the Linux Foundation[29] and was renamed to Apptainer.[30]

Features

Singularity is able to support natively high-performance interconnects, such as InfiniBand[31] and Intel Omni-Path Architecture (OPA).[32]

Similar to the support for InfiniBand and Intel OPA devices, Singularity can support any PCIe-attached device within the compute node, such as graphic accelerators.[33]

Singularity also has native support for Open MPI library by utilizing a hybrid MPI container approach where OpenMPI exists both inside and outside the container.

These features make Singularity increasingly useful in areas such as machine learning, deep learning and most data-intensive workloads where the applications benefit from the high bandwidth and low latency characteristics of these technologies.[34]

Integration

HPC systems traditionally already have resource management and job scheduling systems in place, so the container runtime environments must be integrated into the existing system resource manager.

Using other enterprise container solutions like Docker in HPC systems would require modifications to the software.[35] Docker containers can be automatically converted to stand-alone singularity files which can then be submitted to HPC resource managers.[36]

Singularity seamlessly integrates with many resource managers[37] including:

See also

Further reading

Notes and References

  1. Web site: Releases · apptainer/singularity . github.com . 29 June 2022.
  2. Web site: Singularity+GoLang. GitHub. 3 December 2021 .
  3. Web site: Singularity License . Apptainer.org . Singularity Team . 3 December 2021 .
  4. Web site: Singularity presentation at FOSDEM 17. archive.fosdem.org.
  5. Singularity: Scientific Containers for Mobility of Compute . PLOS ONE . 12 . 5 . e0177459 . 10.1371/journal.pone.0177459 . 28494014 . 5426675 . 2017 . Kurtzer . Gregory M. . Sochat . Vanessa . Bauer . Michael W. . 2017PLoSO..1277459K . free .
  6. Web site: Singularity, a container for HPC. 24 April 2016. admin-magazine.com.
  7. Web site: Singularity Manual: Mobility of Compute. Singularity User Guide - Version 2.5.2.
  8. Web site: Sylabs Brings Singularity Containers into Commercial HPC . top500.org.
  9. Web site: Singularity License . singularity.lbl.gov . Singularity Team . 19 March 2018 . 2018-03-19.
  10. Web site: Changes to the AUTHORS.md file in Singularity source code made in April 2017. .
  11. Web site: Berkeley Lab's Open-Source Spinoff Serves Science. 7 June 2017.
  12. Web site: XStream online user manual, section on Singularity. xstream.stanford.edu.
  13. Web site: XStream cluster overview. 10 April 2018. 24 October 2020. https://web.archive.org/web/20201024231800/https://portal.xsede.org/stanford-xstream. dead.
  14. Web site: Sherlock: What's New, Containers and Deep Learning Tools . Stanford Research Computing Center.
  15. Web site: NIH HPC online user manual, section on Singularity . hpc.nih.gov .
  16. Web site: NIH HPC Systems. hpc.nih.gov.
  17. Web site: Singularity on the OSG.
  18. Web site: Singularity in CMS: Over a million containers served.
  19. Web site: HPCwire Reveals Winners of the 2016 Readers' and Editors' Choice Awards at SC16 Conference in Salt Lake City. HPCwire.
  20. Web site: HPCwire Reveals Winners of the 2017 Readers' and Editors' Choice Awards at SC17 Conference in Denver. HPCwire.
  21. Web site: Voluntary registry of Singularity installations.
  22. Web site: Sylabs home page. 29 June 2022.
  23. Sylabs Emerges from Stealth to Bring Singularity Container Technology to Enterprise Performance Computing. 8 February 2018 . 29 June 2022.
  24. Web site: Singularity 3.0.0 . GitHub.
  25. Web site: Singularity repository move and company updates. 29 June 2022.
  26. Web site: Sylabs fork of Singularity. 29 June 2022.
  27. Web site: SingularityCE. 30 June 2022.
  28. Web site: SingularityCE. 28 October 2022. GitHub.
  29. Web site: Singularity has joined the Linux Foundation!. 29 June 2022.
  30. Web site: Apptainer website. 15 February 2023.
  31. Web site: Intel Advanced Tutorial: HPC Containers & Singularity – Advanced Tutorial – Intel.
  32. Web site: Intel Application Note: Building Containers for Intel Omni-Path Fabrics using Docker and Singularity .
  33. Web site: Singularity Manual: A GPU example.
  34. Book: 10724 . 3–21 . 10.1007/978-3-319-72971-8_1 . Lecture Notes in Computer Science . 2018 . Tallent . Nathan R. . Gawande . Nitin . Siegel . Charles . Vishnu . Abhinav . Hoisie . Adolfy . High Performance Computing Systems. Performance Modeling, Benchmarking, and Simulation . Evaluating On-Node GPU Interconnects for Deep Learning Workloads . 978-3-319-72970-1 . 1674152 .
  35. Web site: HPC Containers in use. Jonathan Sparks, Cray Inc.. 2017.
  36. Web site: Singularity and Docker. December 3, 2021.
  37. Web site: Support on existing traditional HPC.
  38. Web site: HTCondor Stable Release Manual : Singularity Support. 4 February 2020. 4 February 2020. https://web.archive.org/web/20200204215032/https://htcondor.readthedocs.io/en/stable/admin-manual/singularity-support.html. dead.