Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarithm committed Feb 21, 2022
1 parent ee1f9a5 commit fd115ef
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docker/Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#!/usr/bin/env -S sh -c 'docker build --rm -t torch_quiver:snapshot . -f $0 && docker run --rm -it torch_quiver:snapshot'

FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-devel

# Install PyG.
RUN CPATH=/usr/local/cuda/include:$CPATH \
&& LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
&& DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH
RUN CPATH=/usr/local/cuda/include:$CPATH && \
LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH && \
DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH

RUN pip install scipy==1.5.0

RUN pip install --no-index torch-scatter -f https://data.pyg.org/whl/torch-1.9.0+cu102.html \
&& pip install --no-index torch-sparse -f https://data.pyg.org/whl/torch-1.9.0+cu102.html \
&& pip install torch-geometric
RUN pip install --no-index torch-scatter -f https://data.pyg.org/whl/torch-1.9.0+cu102.html && \
pip install --no-index torch-sparse -f https://data.pyg.org/whl/torch-1.9.0+cu102.html && \
pip install torch-geometric

WORKDIR /quiver
ADD . .
RUN pip install -v .

# Set the default command to python3.
CMD ["python3"]

0 comments on commit fd115ef

Please sign in to comment.