Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apptainer container definition file #538

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docker/Apptainer
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Bootstrap: docker
From: pytorch/pytorch:1.12.0-cuda11.3-cudnn8-devel

%post
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt install -y git ninja-build cmake build-essential libopenblas-dev xterm xauth openssh-server tmux wget mate-desktop-environment-core
apt-get clean
rm -rf /var/lib/apt/lists/*

export TORCH_CUDA_ARCH_LIST="6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6"
export TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
# For faster build, use more jobs.
MAX_JOBS=4
git clone --recursive "https://github.com/NVIDIA/MinkowskiEngine"
cd MinkowskiEngine
python setup.py install --force_cuda --blas=openblas

%runscript
python