Image size: 7.1 GB

For more on pulling from the registry, see the ilifu documentation.

First, once: add the registry and make it your default

singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry

If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.

Log in, for a private collection

singularity remote login idia-registry

Paste a token from your token page when asked. Public collections need no login.

Pull the container

singularity pull library://python-gpu/astro-gpu:2023-10-10

Shell into the container

singularity shell library://python-gpu/astro-gpu:2023-10-10

Run the container

singularity run library://python-gpu/astro-gpu:2023-10-10

First, once: add the registry and make it your default

apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry

If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.

Log in, for a private collection

apptainer remote login idia-registry

Paste a token from your token page when asked. Public collections need no login.

Pull the container

apptainer pull library://python-gpu/astro-gpu:2023-10-10

Shell into the container

apptainer shell library://python-gpu/astro-gpu:2023-10-10

Run the container

apptainer run library://python-gpu/astro-gpu:2023-10-10
This container includes TensorFlow and software for accelerating ETL (DALI, RAPIDS), Training (cuDNN, NCCL), and Inference (TensorRT) workloads. Common astronomy Python pacakges have also been included.
Bootstrap: docker

From: nvcr.io/nvidia/tensorflow:23.09-tf2-py3

%runscript

    /usr/bin/python "$@"

%post

    apt-get update -y
    apt-get install -y wget vim python3-pip gcc unzip git time

    python -m pip install --upgrade pip
    python -m pip install pipenv ipython ipykernel astropy numpy glop matplotlib scipy optuna jupyterlab-optuna ipywidgets
    python -m pip install plotly==5.18.0

%labels
    APPLICATION_NAME NVIDIA Tensorflow2
    APPLICATION_URL https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow
    SYSTEM_NAME iLifu
    SYSTEM_URL http://www.ilifu.ac.za

    AUTHOR_NAME IDIA
    AUTHOR_EMAIL support@ilifu.ac.za

%help
    This container includes TensorFlow and software for accelerating ETL (DALI, RAPIDS), Training (cuDNN, NCCL), and Inference (TensorRT) workloads. Common astronomy Python pacakges have also been included.
Download python-gpu-astro-gpu_2023-10-10.def
#!/bin/sh


    /usr/bin/python "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/mpi/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ucx/bin:/opt/tensorrt/bin"
export CUDA_VERSION="${CUDA_VERSION:-"12.2.1.020"}"
export CUDA_DRIVER_VERSION="${CUDA_DRIVER_VERSION:-"535.86.10"}"
export CUDA_CACHE_DISABLE="${CUDA_CACHE_DISABLE:-"1"}"
export NVIDIA_REQUIRE_JETPACK_HOST_MOUNTS="${NVIDIA_REQUIRE_JETPACK_HOST_MOUNTS:-""}"
export _CUDA_COMPAT_PATH="${_CUDA_COMPAT_PATH:-"/usr/local/cuda/compat"}"
export ENV="${ENV:-"/etc/shinit_v2"}"
export BASH_ENV="${BASH_ENV:-"/etc/bash.bashrc"}"
export SHELL="${SHELL:-"/bin/bash"}"
export NVIDIA_REQUIRE_CUDA="${NVIDIA_REQUIRE_CUDA:-"cuda>=9.0"}"
export NCCL_VERSION="${NCCL_VERSION:-"2.18.5"}"
export CUBLAS_VERSION="${CUBLAS_VERSION:-"12.2.5.6"}"
export CUFFT_VERSION="${CUFFT_VERSION:-"11.0.8.91"}"
export CURAND_VERSION="${CURAND_VERSION:-"10.3.3.129"}"
export CUSPARSE_VERSION="${CUSPARSE_VERSION:-"12.1.2.129"}"
export CUSOLVER_VERSION="${CUSOLVER_VERSION:-"11.5.1.129"}"
export CUTENSOR_VERSION="${CUTENSOR_VERSION:-"1.7.0.1"}"
export NPP_VERSION="${NPP_VERSION:-"12.2.0.5"}"
export NVJPEG_VERSION="${NVJPEG_VERSION:-"12.2.1.2"}"
export CUDNN_VERSION="${CUDNN_VERSION:-"8.9.5.27"}"
export TRT_VERSION="${TRT_VERSION:-"8.6.1.6+cuda12.0.1.011"}"
export TRTOSS_VERSION="${TRTOSS_VERSION:-"23.09"}"
export NSIGHT_SYSTEMS_VERSION="${NSIGHT_SYSTEMS_VERSION:-"2023.3.1.92"}"
export NSIGHT_COMPUTE_VERSION="${NSIGHT_COMPUTE_VERSION:-"2023.2.1.3"}"
export DALI_VERSION="${DALI_VERSION:-"1.29.0"}"
export DALI_BUILD="${DALI_BUILD:-"9289093"}"
export POLYGRAPHY_VERSION="${POLYGRAPHY_VERSION:-"0.49.0"}"
export TRANSFORMER_ENGINE_VERSION="${TRANSFORMER_ENGINE_VERSION:-"0.12"}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-"/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64"}"
export NVIDIA_VISIBLE_DEVICES="${NVIDIA_VISIBLE_DEVICES:-"all"}"
export NVIDIA_DRIVER_CAPABILITIES="${NVIDIA_DRIVER_CAPABILITIES:-"compute,utility,video"}"
export NVIDIA_PRODUCT_NAME="${NVIDIA_PRODUCT_NAME:-"TensorFlow"}"
export GDRCOPY_VERSION="${GDRCOPY_VERSION:-"2.3"}"
export HPCX_VERSION="${HPCX_VERSION:-"2.16rc4"}"
export MOFED_VERSION="${MOFED_VERSION:-"5.4-rdmacore39.0"}"
export OPENUCX_VERSION="${OPENUCX_VERSION:-"1.15.0"}"
export OPENMPI_VERSION="${OPENMPI_VERSION:-"4.1.5rc2"}"
export RDMACORE_VERSION="${RDMACORE_VERSION:-"39.0"}"
export OPAL_PREFIX="${OPAL_PREFIX:-"/opt/hpcx/ompi"}"
export OMPI_MCA_coll_hcoll_enable="${OMPI_MCA_coll_hcoll_enable:-"0"}"
export LIBRARY_PATH="${LIBRARY_PATH:-"/usr/local/cuda/lib64/stubs:"}"
export TENSORFLOW_VERSION="${TENSORFLOW_VERSION:-"2.13.0"}"
export NVIDIA_TENSORFLOW_VERSION="${NVIDIA_TENSORFLOW_VERSION:-"23.09-tf2"}"
export PYVER="${PYVER:-"3.10"}"
export PYTHONIOENCODING="${PYTHONIOENCODING:-"utf-8"}"
export LC_ALL="${LC_ALL:-"C.UTF-8"}"
export PIP_DEFAULT_TIMEOUT="${PIP_DEFAULT_TIMEOUT:-"100"}"
export SETUPTOOLS_USE_DISTUTILS="${SETUPTOOLS_USE_DISTUTILS:-"stdlib"}"
export PIP_DISABLE_PIP_VERSION_CHECK="${PIP_DISABLE_PIP_VERSION_CHECK:-"1"}"
export BAZELRC="${BAZELRC:-"/root/.bazelrc"}"
export NVM_DIR="${NVM_DIR:-"/usr/local/nvm"}"
export JUPYTER_PORT="${JUPYTER_PORT:-"8888"}"
export TENSORBOARD_PORT="${TENSORBOARD_PORT:-"6006"}"
export TENSORBOARD_DEBUGGER_PORT="${TENSORBOARD_DEBUGGER_PORT:-"6064"}"
export TF_AUTOTUNE_THRESHOLD="${TF_AUTOTUNE_THRESHOLD:-"2"}"
export TF_USE_CUDNN_BATCHNORM_SPATIAL_PERSISTENT="${TF_USE_CUDNN_BATCHNORM_SPATIAL_PERSISTENT:-"1"}"
export CUDA_MODULE_LOADING="${CUDA_MODULE_LOADING:-"LAZY"}"
export NVIDIA_BUILD_ID="${NVIDIA_BUILD_ID:-"68583340"}"
Label Value Containers
SYSTEM_NAME iLifu 82
org.label-schema.build-arch amd64 180
AUTHOR_NAME IDIA 68
SYSTEM_URL http://www.ilifu.ac.za 117
org.label-schema.schema-version 1.0 180
org.label-schema.usage.singularity.runscript.help /.singularity.d/runscript.help 85
org.label-schema.usage /.singularity.d/runscript.help 85
AUTHOR_EMAIL support@ilifu.ac.za 82
org.label-schema.usage.singularity.version 3.9.1 44
org.label-schema.usage.singularity.deffile.bootstrap docker 49
org.opencontainers.image.version 22.04 11
org.opencontainers.image.ref.name ubuntu 15
com.nvidia.nvjpeg.version 12.2.1.2 6
com.nvidia.cublas.version 12.2.5.6 6
org.label-schema.usage.singularity.deffile.from nvcr.io/nvidia/tensorflow:23.09-tf2-py3 5
com.nvidia.cufft.version 11.0.8.91 6
APPLICATION_URL https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow 6
com.nvidia.build.ref b1f887131189398e8b700f2858893646a7e89c21 5
com.nvidia.cudnn.version 8.9.5.27 6
com.nvidia.cutensor.version 1.7.0.1 6
com.nvidia.tensorrtoss.version 23.09 6
com.nvidia.cusolver.version 11.5.1.129 6
com.nvidia.volumes.needed nvidia_driver 8
com.nvidia.build.id 68583340 5
com.nvidia.nsightcompute.version 2023.2.1.3 6
com.nvidia.nsightsystems.version 2023.3.1.92 6
APPLICATION_NAME NVIDIA Tensorflow2 6
com.nvidia.tensorrt.version 8.6.1.6+cuda12.0.1.011 6
com.nvidia.curand.version 10.3.3.129 6
com.nvidia.npp.version 12.2.0.5 6
com.nvidia.cusparse.version 12.1.2.129 6
com.nvidia.tensorflow.version 2.13.0 5
com.nvidia.nccl.version 2.18.5 6
com.nvidia.cuda.version 9.0 8