Skip to content
Snippets Groups Projects
Commit 4ec40cc3 authored by Wu, Jiantao (PG/R - Comp Sci & Elec Eng)'s avatar Wu, Jiantao (PG/R - Comp Sci & Elec Eng)
Browse files

torch2

parent c2aa8401
No related branches found
No related tags found
No related merge requests found
Pipeline #91349 failed
# Get the base image from nvidia/cuda Docker image. # Get the base image from nvidia/cuda Docker image.
BootStrap: docker Bootstrap: docker
From: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 From: docker.io/pytorch/pytorch:2.1.1-cuda12.1-cudnn8-runtime
%post %post
# Install special software or additions # Install special software or additions
apt-get update -y # Good practice, update the package database. apt-get update -y # Good practice, update the package database.
apt-get install -y libopenblas-dev # Install the BLAS. apt-get install -y git
apt-get autoremove -y && apt-get autoclean -y # Good practice, to keep the Docker image as small as possible. apt-get autoremove -y && apt-get autoclean -y # Good practice, to keep the Docker image as small as possible.
conda update -y conda
conda install -y cupy compilers pkg-config "libjpeg-turbo>=3.0.0" opencv numba -c pytorch -c conda-forge
conda install -y pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
conda clean -a
pip install timm wandb imageio pandas gin-config tqdm scipy
pip cache purge
%environment %environment
# Set some environment vars # Set some environment vars
export PATH=/opt/root/bin:$PATH #export PYTHONPATH=/opt/root/lib
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/root/lib
%runscript %runscript
# The command that will run when container is started via apptainer run command. # The command that will run when container is started via apptainer run command.
python /opt/root/tutorials/roofit/rf101_basics.py echo "Container was created $NOW"
echo "Arguments received: $*"
$@
%labels %labels
# Add custom metadata to the container. # Add custom metadata to the container.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment