-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade pytorch and cuda versions (#141)
1 upgrade dependencies: pytorch version to 2.3.0 and cuda to 12.1 2 add dockerfiles for devel and wheel images 3 python package: deprecate support for python 3.7 and add python 3.11. Refer to: https://pytorch.org/blog/deprecation-cuda-python-support/
- Loading branch information
Showing
11 changed files
with
69 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG GLT_CUDA_VERSION=12.1 | ||
ARG GLT_TORCH_VERSION=2.3.0 | ||
|
||
FROM nvidia/cuda:${GLT_CUDA_VERSION}.0-devel-ubuntu22.04 | ||
|
||
RUN apt update && apt install python3-pip vim git cmake -y | ||
RUN ln -s python3 /usr/bin/python | ||
|
||
ARG GLT_TORCH_VERSION GLT_CUDA_VERSION | ||
|
||
RUN CUDA_WHEEL_VERSION=$(echo "$GLT_CUDA_VERSION" | sed 's/\.//g') \ | ||
&& pip install torch==${GLT_TORCH_VERSION} --index-url https://download.pytorch.org/whl/cu${CUDA_WHEEL_VERSION} \ | ||
&& pip install torch_geometric \ | ||
&& pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \ | ||
-f https://data.pyg.org/whl/torch-${GLT_TORCH_VERSION}+cu${CUDA_WHEEL_VERSION}.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG GLT_TORCH_VERSION=2.3.0 | ||
ARG CUDA_WHEEL_VERSION=121 | ||
|
||
FROM pytorch/manylinux-cuda$CUDA_WHEEL_VERSION | ||
|
||
ARG GLT_TORCH_VERSION CUDA_WHEEL_VERSION | ||
ENV ABIS="cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311" | ||
|
||
RUN set -ex; \ | ||
for abi in $ABIS; do \ | ||
PYBIN=/opt/python/${abi}/bin; \ | ||
${PYBIN}/pip install ninja scipy; \ | ||
${PYBIN}/pip install torch==${GLT_TORCH_VERSION} --index-url https://download.pytorch.org/whl/cu${CUDA_WHEEL_VERSION}; \ | ||
${PYBIN}/pip install torch_geometric; \ | ||
${PYBIN}/pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \ | ||
-f https://data.pyg.org/whl/torch-${GLT_TORCH_VERSION}+cu${CUDA_WHEEL_VERSION}.html; \ | ||
${PYBIN}/pip install auditwheel; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG REGISTRY=registry.cn-hongkong.aliyuncs.com | ||
ARG GLT_TORCH_VERSION=2.3.0 | ||
ARG GS_VERSION=latest | ||
|
||
FROM $REGISTRY/graphscope/graphscope-dev:$GS_VERSION | ||
|
||
ARG GLT_TORCH_VERSION | ||
|
||
RUN pip install torch==${GLT_TORCH_VERSION} --index-url https://download.pytorch.org/whl/cpu \ | ||
&& pip install torch_geometric \ | ||
&& pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \ | ||
-f https://data.pyg.org/whl/torch-${GLT_TORCH_VERSION}+cpu.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters