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

update torch (and cuda) #5

Merged
merged 3 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
31 changes: 31 additions & 0 deletions .github/workflows/post-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,31 @@ jobs:
PDM: __pdm/bin/pdm
steps:
- uses: actions/checkout@v3
- name: Install CUDA 12.1.1
shell: bash
run: |
pushd ..
INSTALLER=cuda_12.1.1_530.30.02_linux.run
VERSION=12.1.1
BASE=https://developer.download.nvidia.com/compute/cuda
SHASUM=d74022d41d80105319dfa21beea39b77a5b9919539c0487a05caaf2446d6a70e

if sha256sum ${INSTALLER} \
| awk '/^'"${SHASUM}"' *'"${INSTALLER}"'$/'
then
echo "Already downloaded the installer, reusing"
else
wget ${BASE}/${VERSION}/local_installers/${INSTALLER}
fi

chmod +x ./${INSTALLER}

echo "running installer $(pwd)/${INSTALLER}; unpacking in $(pwd)/cuda"

mkdir -p cuda
./${INSTALLER} --toolkit --silent --installpath=$(pwd)/cuda

popd
- name: Install PDM
shell: bash
run: |
Expand All @@ -30,10 +55,16 @@ jobs:
- name: PDM Sync
shell: bash
run: |
CUDA_PATH="$(pwd | xargs dirname)/cuda"
LD_LIBRARY_PATH="${CUDA_PATH}/lib64"
export CUDA_PATH LD_LIBRARY_PATH
"${PDM}" sync --clean
- name: Build Wheel
shell: bash
run: |
CUDA_PATH="$(pwd | xargs dirname)/cuda"
LD_LIBRARY_PATH="${CUDA_PATH}/lib64"
export CUDA_PATH LD_LIBRARY_PATH
"${PDM}" build
- name: Locate Wheel
id: locate
Expand Down
109 changes: 39 additions & 70 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# inconsistencies.

[[tool.pdm.source]]
url = "https://download.pytorch.org/whl/cu117"
url = "https://download.pytorch.org/whl/cu121"
verify_ssl = true
name = "torch-cu117"
name = "torch-cu121"
type = "find-links"


[project]
name = "torchsparse"
description = ""
authors = []
dependencies = ["torch==2.0.0+cu117", "tqdm", "numpy", "setuptools"]
dependencies = ["torch==2.1.2+cu121", "tqdm", "numpy", "setuptools"]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
Expand All @@ -23,4 +23,4 @@ dynamic = ["version"]
version = {attr = "torchsparse.__version__"}

[build-system]
requires = ["torch==2.0.0+cu117", "tqdm", "numpy", "setuptools"]
requires = ["torch==2.1.2+cu121", "tqdm", "numpy", "setuptools"]
Loading