Skip to content

Commit

Permalink
Fix singularity recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuch committed Dec 29, 2020
1 parent 8aeb0ec commit 57def74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Build Python package:
`python setup.py bdist_wheel`

Build singularity recipe:
`neurodocker generate singularity -b nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 -p apt --copy /home/tibuch/Gitrepos/FourierImageTransformer/dist/fourier_image_transformers-0.1.0-py3-none-any.whl /fourier_image_transformers-0.1.0-py3-none-any.whl --miniconda create_env=fit conda_install='python=3.7 astra-toolbox -c astra-toolbox/label/dev pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch' pip_install='/fourier_image_transformers-0.1.0-py3-none-any.whl' activate=true --entrypoint "/neurodocker/startup.sh python" > v0.1.0.Singularity`
`neurodocker generate singularity -b nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 -p apt --copy /home/tibuch/Gitrepos/FourierImageTransformer/dist/fourier_image_transformers-0.1.0-py3-none-any.whl /fourier_image_transformers-0.1.0-py3-none-any.whl --miniconda create_env=fit conda_install='python=3.7 astra-toolbox pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch -c astra-toolbox/label/dev' pip_install='/fourier_image_transformers-0.1.0-py3-none-any.whl' activate=true --entrypoint "/neurodocker/startup.sh python" > v0.1.0.Singularity`

Build singularity container:
`sudo singularity build fit.simg fit.Singularity`
14 changes: 7 additions & 7 deletions singularity/v0.1.0.Singularity
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by: Neurodocker version 0.7.0
# Latest release: Neurodocker version 0.7.0
# Timestamp: 2020/12/29 15:21:22 UTC
# Timestamp: 2020/12/29 15:40:35 UTC
#
# Thank you for using Neurodocker. If you discover any issues
# or ways to improve this software, please submit an issue or
Expand Down Expand Up @@ -53,14 +53,14 @@ conda create -y -q --name fit
conda install -y -q --name fit \
"python=3.7" \
"astra-toolbox" \
"-c" \
"astra-toolbox/label/dev" \
"pytorch" \
"torchvision" \
"torchaudio" \
"cudatoolkit=10.2" \
"-c" \
"pytorch"
"pytorch" \
"-c" \
"astra-toolbox/label/dev"
sync && conda clean -y --all && sync
bash -c "source activate fit
pip install --no-cache-dir \
Expand Down Expand Up @@ -102,14 +102,14 @@ echo '{
\n "conda_install": [
\n "python=3.7",
\n "astra-toolbox",
\n "-c",
\n "astra-toolbox/label/dev",
\n "pytorch",
\n "torchvision",
\n "torchaudio",
\n "cudatoolkit=10.2",
\n "-c",
\n "pytorch"
\n "pytorch",
\n "-c",
\n "astra-toolbox/label/dev"
\n ],
\n "pip_install": [
\n "/fourier_image_transformers-0.1.0-py3-none-any.whl"
Expand Down

0 comments on commit 57def74

Please sign in to comment.