Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
95ef416e
Commit
95ef416e
authored
Nov 08, 2021
by
yan.yan
Browse files
fix a syntax bug for python 3.7
parent
5d7140be
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
18 deletions
+61
-18
.github/workflows/build.yaml
.github/workflows/build.yaml
+41
-14
.github/workflows/stale.yaml
.github/workflows/stale.yaml
+18
-0
spconv/pytorch/functional.py
spconv/pytorch/functional.py
+1
-1
third_party/cutlass
third_party/cutlass
+0
-1
third_party/mp11
third_party/mp11
+0
-1
version.txt
version.txt
+1
-1
No files found.
.github/workflows/build.yaml
View file @
95ef416e
...
...
@@ -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"
...
...
.github/workflows/stale.yaml
0 → 100644
View file @
95ef416e
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.'
spconv/pytorch/functional.py
View file @
95ef416e
...
...
@@ -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
version.txt
View file @
95ef416e
2.1.1
\ No newline at end of file
2.1.2
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment