Example Container (TensorFlow)
apptainer build tensorflow-24.03-tf2-py3.simg docker://nvcr.io/nvidia/tensorflow:24.03-tf2-py3export APPTAINER_CACHEDIR=/tmp export APPTAINER_TMPDIR=/tmpinteract -q gpu -g 1 -f ampere -m 20g -n 4export APPTAINER_BINDPATH="/oscar/home/$USER,/oscar/scratch/$USER,/oscar/data" apptainer run --nv tensorflow-24.03-tf2-py3.simg# Execute a command inside the container with GPU support apptainer exec --nv tensorflow-24.03-tf2-py3.simg nvidia-smipython>>> import tensorflow as tf >>> tf.test.is_gpu_available(cuda_only=False, min_cuda_compute_capability=None) TrueApptainer> pip install <package-name> --user
Slurm Script:
Last updated
Was this helpful?