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
ccb1f1db
Commit
ccb1f1db
authored
Oct 19, 2021
by
yan.yan
Browse files
fix CI build
parent
43ff1611
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
17 deletions
+31
-17
spconv/__init__.py
spconv/__init__.py
+2
-2
spconv/algo.py
spconv/algo.py
+1
-14
spconv/core.py
spconv/core.py
+27
-0
tools/build-wheels.sh
tools/build-wheels.sh
+1
-1
No files found.
spconv/__init__.py
View file @
ccb1f1db
...
...
@@ -14,5 +14,5 @@
from
.
import
build
as
_build
from
.algo
import
ConvAlgo
from
.
import
utils
,
constants
\ No newline at end of file
from
.core
import
ConvAlgo
,
AlgoHint
from
.
import
constants
\ No newline at end of file
spconv/algo.py
View file @
ccb1f1db
...
...
@@ -23,20 +23,7 @@ from typing import Optional
import
time
import
numpy
as
np
class
ConvAlgo
(
Enum
):
Native
=
"Native"
MaskImplicitGemm
=
"MaskImplicitGemm"
MaskSplitImplicitGemm
=
"MaskSplitImplicitGemm"
class
AlgoHint
(
Enum
):
NoHint
=
0b000
Fowrard
=
0b001
BackwardInput
=
0b010
BackwardWeight
=
0b100
from
.core
import
ConvAlgo
,
AlgoHint
ALL_ALGO_DESPS
=
GemmMainUnitTest
.
get_all_algo_desp
()
...
...
spconv/core.py
0 → 100644
View file @
ccb1f1db
# Copyright 2021 Yan Yan
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
enum
import
Enum
class
ConvAlgo
(
Enum
):
Native
=
"Native"
MaskImplicitGemm
=
"MaskImplicitGemm"
MaskSplitImplicitGemm
=
"MaskSplitImplicitGemm"
class
AlgoHint
(
Enum
):
NoHint
=
0b000
Fowrard
=
0b001
BackwardInput
=
0b010
BackwardWeight
=
0b100
tools/build-wheels.sh
View file @
ccb1f1db
...
...
@@ -28,7 +28,7 @@ function repair_wheel {
export
SPCONV_DISABLE_JIT
=
"1"
export
CUMM_CUDA_ARCH_LIST
=
"all"
# Compile wheels, we only support 3.6-3.10.
"/opt/python/cp36-cp36m/bin/pip"
wheel /io/
--no-deps
-w
/io/wheelhouse_tmp
#
"/opt/python/cp36-cp36m/bin/pip" wheel /io/ --no-deps -w /io/wheelhouse_tmp
"/opt/python/cp37-cp37m/bin/pip"
wheel /io/
--no-deps
-w
/io/wheelhouse_tmp
"/opt/python/cp38-cp38/bin/pip"
wheel /io/
--no-deps
-w
/io/wheelhouse_tmp
"/opt/python/cp39-cp39/bin/pip"
wheel /io/
--no-deps
-w
/io/wheelhouse_tmp
...
...
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