Skip to content

Commit

Permalink
Adds ffcv support to image
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneNx committed Feb 16, 2022
1 parent 82c3786 commit 16f1ea1
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 33 deletions.
33 changes: 0 additions & 33 deletions Singularity.v0.1.def

This file was deleted.

55 changes: 55 additions & 0 deletions Singularity.v0.2.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Bootstrap: docker

From: continuumio/miniconda3

%files
environment.yml

%post
apt update && apt install -y \
build-essential \
git \
wget \
vim \
curl \
zip \
zlib1g-dev \
unzip \
pkg-config \
libblas-dev \
liblapack-dev \
python3-tk \
python3-wheel \
graphviz \
libhdf5-dev \
python3.9 \
python3.9-dev \
python3.9-distutils \
python3-testresources \
software-properties-common \
swig \
ffmpeg \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-base \
dvipng
#zsh
apt-get clean

ln -s /usr/bin/python3.9 /usr/local/bin/python
ln -s /usr/bin/python3.9 /usr/local/bin/python3


/opt/conda/bin/conda env create -f environment.yml

/opt/conda/bin/conda run -n $(head -n 1 environment.yml | cut -f 2 -d ' ') pip install ffcv \
vit-pytorch \
torch==1.10.2+cu113 \
torchvision==0.11.3+cu113 \
torchaudio==0.10.2+cu113 \
-f https://download.pytorch.org/whl/cu113/torch_stable.html

%runscript
exec /opt/conda/envs/$(head -n 1 environment.yml | cut -f 2 -d ' ')/bin/"$@"


35 changes: 35 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: nntransfer_env
channels:
- pytorch
- conda-forge
dependencies:
- cupy
- pkg-config
- compilers
- libjpeg-turbo
- opencv
- cudatoolkit=11.3
- numba
- blackcellmagic
- pytest
- pytest-cov
- numpy
- matplotlib
- scipy
- pandas
- jupyter
- scikit-learn
- scikit-image
- seaborn
- graphviz
- gpustat
- h5py
- gitpython
- Pillow==8.0.1
- jupyterlab
- datajoint==0.12.7
- ipykernel
- requests
- imageio
- scikit-image
- einops

0 comments on commit 16f1ea1

Please sign in to comment.