From d1a9621ac90bcd56b3a1afbe4d4947eefc5a5042 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 21:17:56 +0200 Subject: [PATCH 1/2] PyTorch 2.7 support --- .github/workflows/building.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index e928465e..f8dfe281 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -49,6 +49,7 @@ jobs: - name: Upgrade pip run: | pip install --upgrade setuptools + pip install wheel - name: Install scipy if: ${{ (matrix.python-version == '3.8') || (matrix.python-version == '3.9') }} @@ -96,30 +97,21 @@ jobs: run: | bash .github/workflows/metis-${{ runner.os }}.sh - - name: Install main package for CPU + - name: Build wheel on CPU if: ${{ matrix.cuda-version == 'cpu' }} run: | - FORCE_ONLY_CPU=1 WITH_METIS=1 pip install -v -e . --no-build-isolation + FORCE_ONLY_CPU=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist shell: bash - - name: Install main package for GPU + - name: Build wheel on GPU if: ${{ matrix.cuda-version != 'cpu' }} run: | source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh - FORCE_CUDA=1 WITH_METIS=1 pip install -v -e . --no-build-isolation + FORCE_CUDA=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist shell: bash - - name: Test installation - run: | - python -c "import torch_sparse; print('torch-sparse:', torch_sparse.__version__)" - - - name: Build wheel - run: | - pip install wheel - python setup.py bdist_wheel --dist-dir=dist - - name: Configure AWS uses: aws-actions/configure-aws-credentials@v1 with: From 2d4f195ae0bc5921ef6d307be6c7dfdb55f9ddb0 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 21:19:57 +0200 Subject: [PATCH 2/2] PyTorch 2.7 support --- .github/workflows/building.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index f8dfe281..a8b615bb 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -97,14 +97,14 @@ jobs: run: | bash .github/workflows/metis-${{ runner.os }}.sh - - name: Build wheel on CPU + - name: Build wheel for CPU if: ${{ matrix.cuda-version == 'cpu' }} run: | FORCE_ONLY_CPU=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist shell: bash - - name: Build wheel on GPU + - name: Build wheel for GPU if: ${{ matrix.cuda-version != 'cpu' }} run: | source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh