Using NGC
Having an NVIDIA's GPU Cloud Registry account has a lot of benefits
While an NGC account is not necessary to use the DGX, it does provide a lot of capabilities.
Getting an NVIDIA GPU Cloud Account:
The NVIDIA GPU Cloud (NGC) provides simple access to GPU-optimized software for deep learning, machine learning and high-performance computing (HPC). An NGC account grants you access to these tools as well as the ability to set up a private registry to manage your customized software.
Sign up for an NGC account at https://ngc.nvidia.com
Accessing the NGC registry:
Once you have an NGC account, you are able to access containers and instructions on running them using Singularity or Docker. The access is provided through the NGC web interface or using the NGC CLI.
Because we use Singularity containers to run most applications on the server, you need to pull down Docker containers from NVIDIA GPU Cloud (NGC) and convert them to Singularity format (SIF) for execution. This can be done either through the NGC web portal or the NGC CLI.
Using the NGC Web Portal:
The list of available Containers can be found here. You can search through the registry and download and run the containers as described there.
Using NGC CLI to interact with NGC:
Alternatively, you can access the same information through a command line (CLI) environment. Once you’ve created an NGC account and have logged in, you’ll be able to generate the NGC API key required to pull all NGC containers. You can find more information describing how to obtain and use your NGC API key here.
Setting up NGC Credentials on Hopper:
Users are currently set up to use our ORC's NGC account to pull down containers from NGC and interact with them. The steps below are provided if you want to sign up for your own NGC account and set up your personal registry.
To access your own NGC account, you must set the NGC container registry authentication credentials.
This is easily accomplished by setting and adding the following environment variables in your ~/.bashrc
:
NGC commands:
To interact with NGC using the CLI, you can run the following command to see the possible options:
This example demonstrates how to search and pull down a GROMACS image:
To look through your NGC setup and diagnose any issues with your account, you can run
Pulling Docker Containers and Building Singularity containers:
Once you select a Docker container to use, you can pull it down and convert it to Singularity image format with the following command.
Here is an example for preparing a GROMACS Singularity container:
Please note that we have adapted the following convention on naming Singularity image files.
we use SIF instead of SIMG for the file extension
we name containers as
<container_name>_<container_version/tag>.sif
Also note that you can pull the containers from NGC, DockerHub or any other source, but we encourage using ones from the NGC registry if one is available.
Last updated