Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
User Manual

User Manual
Results will update as you type.
  • Application Guide
  • Status of System
  • Usage Guide
  • Compute partitions
    • CPU CLX partition
    • CPU Genoa partition
    • GPU A100 partition
      • Slurm partition GPU A100
      • OpenMP for GPU A100
      • CUDA
      • Apptainer
    • GPU PVC partition
    • Next-Gen Technology Pool
  • Software
  • FAQ
  • NHR Community
  • Contact

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Apptainer

    Apptainer

    März 04, 2024

    Apptainer is provided as a module and can be used to download, build and run e.g. Nvidia containers:

    Apptainer example
    bgnlogin1 ~ $ module load apptainer
    Module for Apptainer 1.1.6 loaded.
    
    #pulling a tensorflow image from nvcr.io - needs to be compatible to local driver
    bgnlogin1 ~ $ apptainer pull tensorflow-22.01-tf2-py3.sif docker://nvcr.io/nvidia/tensorflow:22.01-tf2-py3
    ...
    
    #example: single node run calling python from the container in interactive job using 4 GPUs
    bgnlogin1 ~ $ srun -pgpu-a100 --gres=gpu:4 --nodes=1 --pty --interactive --preserve-env ${SHELL}
    ...
    bgn1003 ~ $ apptainer run --nv tensorflow-22.01-tf2-py3.sif python
    ...
    Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
    [GCC 9.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow as tf
    >>> tf.config.list_physical_devices("GPU")
    [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU'), PhysicalDevice(name='/physical_device:GPU:1', device_type='GPU'), PhysicalDevice(name='/physical_device:GPU:2', device_type='GPU'), PhysicalDevice(name='/physical_device:GPU:3', device_type='GPU')]
    
    #optional: cleanup apptainer cache
    bgnlogin1 ~ $ apptainer cache list
    ...
    bgnlogin1 ~ $ apptainer cache clean
    , multiple selections available,
    {"serverDuration": 11, "requestCorrelationId": "786c9baced3646fca3627a11884ef21b"}