Commit 95ef416e authored by yan.yan's avatar yan.yan
Browse files

fix a syntax bug for python 3.7

parent 5d7140be
......@@ -23,17 +23,24 @@ jobs:
id: changes
with:
filters: |
nobuild:
- 'README.md'
- 'docs/**'
- 'example/**'
- 'spconv/pytorch/**'
needbuild:
- 'setup.py'
- 'spconv/csrc/**'
- 'spconv/algo.py'
- 'spconv/core.py'
- 'pyproject.toml'
- name: Install CUDA
env:
CUDA_VERSION: ${{ matrix.cuda-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
cuda: ${{ matrix.cuda-version }}
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || (env.PYTHON_VERSION == '3.10')
if: |
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) ||
(
(steps.changes.outputs.needbuild == 'true') &&
(env.PYTHON_VERSION == '3.10') &&
(env.CUDA_VERSION != '')
)
shell: powershell
run: .\tools\install_windows_cuda.ps1
- name: Set up Python ${{ matrix.python-version }}
......@@ -51,7 +58,13 @@ jobs:
env:
CUDA_VERSION: ${{ matrix.cuda-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))) || (env.PYTHON_VERSION == '3.10')
if: |
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) ||
(
(steps.changes.outputs.needbuild == 'true') &&
(env.PYTHON_VERSION == '3.10') &&
(env.CUDA_VERSION != '')
)
run: |
$Env:CUMM_CUDA_VERSION = "${{ matrix.cuda-version }}"
$Env:CUMM_CUDA_ARCH_LIST = "all"
......@@ -83,11 +96,13 @@ jobs:
id: changes
with:
filters: |
nobuild:
- 'README.md'
- 'docs/**'
- 'example/**'
- 'spconv/pytorch/**'
needbuild:
- 'setup.py'
- 'spconv/csrc/**'
- 'spconv/algo.py'
- 'spconv/core.py'
- 'pyproject.toml'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
......@@ -105,7 +120,13 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
DOCKER_IMAGE: scrin/manylinux2014-cuda:cu${{ matrix.cuda-version }}-devel-1.0.0
PLAT: manylinux2014_x86_64
if: (env.CUDA_VERSION != '') && ((github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))) || ((env.PYTHON_VERSION == '3.10')))
if: |
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) ||
(
(steps.changes.outputs.needbuild == 'true') &&
(env.PYTHON_VERSION == '3.10') &&
(env.CUDA_VERSION != '')
)
run: |
chmod +x tools/build-wheels.sh
docker run --rm -e PLAT=$PLAT -e CUMM_CUDA_VERSION=${{ matrix.cuda-version }} -e SPCONV_PYTHON_LIST=${{env.PYTHON_VERSION}} -v `pwd`:/io $DOCKER_IMAGE bash -c "source /etc/bashrc && /io/tools/build-wheels.sh"
......@@ -116,7 +137,13 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
DOCKER_IMAGE: scrin/manylinux2014-cuda:cu114-devel-1.0.0
PLAT: manylinux2014_x86_64
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION == '')) || ((env.PYTHON_VERSION == '3.10') && (env.CUDA_VERSION == ''))
if: |
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) ||
(
(steps.changes.outputs.needbuild == 'true') &&
(env.PYTHON_VERSION == '3.10') &&
(env.CUDA_VERSION == '')
)
run: |
chmod +x tools/build-wheels.sh
docker run --rm -e PLAT=$PLAT -e CUMM_CUDA_VERSION=${{ matrix.cuda-version }} -e SPCONV_PYTHON_LIST=${{env.PYTHON_VERSION}} -v `pwd`:/io $DOCKER_IMAGE bash -c "source /etc/bashrc && /io/tools/build-wheels.sh"
......
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: 'Close stale issues due to inactivity.'
stale-pr-message: 'Close stale PRs due to inactivity.'
......@@ -145,7 +145,7 @@ class SparseImplicitGemmFunction(Function):
mask_width=mask_width,
is_subm=is_subm)
None_9 = [None] * 10
return input_bp, filters_bp, *None_9
return (input_bp, filters_bp, *None_9)
class SubMConvFunction(Function):
@staticmethod
......
cutlass @ c2b80ad4
Subproject commit c2b80ad4e4f8b60a65500bd04c8fecddff2ba355
mp11 @ 29764aad
Subproject commit 29764aad4881fde809af6a025c12012e47a55515
2.1.1
\ No newline at end of file
2.1.2
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment