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
38c09d17
Commit
38c09d17
authored
Oct 21, 2021
by
Yan Yan
Browse files
make manylinux docker work correctly
parent
a36475bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
.github/workflows/build.yaml
.github/workflows/build.yaml
+3
-2
tools/build-wheels.sh
tools/build-wheels.sh
+1
-1
No files found.
.github/workflows/build.yaml
View file @
38c09d17
...
@@ -49,7 +49,8 @@ jobs:
...
@@ -49,7 +49,8 @@ jobs:
$Env:SPCONV_DISABLE_JIT = "1"
$Env:SPCONV_DISABLE_JIT = "1"
pip install pccm pybind11
pip install pccm pybind11
git clone https://github.com/NVIDIA/thrust -b cuda-{{ env.CUDA_VERSION }} --depth 1
git clone https://github.com/NVIDIA/thrust -b cuda-{{ env.CUDA_VERSION }} --depth 1
$Env:CUMM_THRUST_INCLUDE = "$PSScriptRoot\thrust"
$CURRENT_DIR = (Get-Location).path
$Env:CUMM_THRUST_INCLUDE = "$CURRENT_DIR\thrust"
python -m build --wheel --outdir dist/ .
python -m build --wheel --outdir dist/ .
shell
:
powershell
shell
:
powershell
...
@@ -91,7 +92,7 @@ jobs:
...
@@ -91,7 +92,7 @@ jobs:
if
:
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || (env.CUDA_VERSION == '114' && env.PYTHON_VERSION == '3.10')
if
:
(github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || (env.CUDA_VERSION == '114' && env.PYTHON_VERSION == '3.10')
run
:
|
run
:
|
chmod +x tools/build-wheels.sh
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 "/io/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
:
Publish a Python distribution to PyPI
-
name
:
Publish a Python distribution to PyPI
if
:
github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if
:
github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
...
...
tools/build-wheels.sh
View file @
38c09d17
...
@@ -24,7 +24,7 @@ function repair_wheel {
...
@@ -24,7 +24,7 @@ function repair_wheel {
auditwheel repair
"
$wheel
"
--plat
"
$PLAT
"
-w
"
$outpath
"
auditwheel repair
"
$wheel
"
--plat
"
$PLAT
"
-w
"
$outpath
"
fi
fi
}
}
gcc
-v
export
SPCONV_DISABLE_JIT
=
"1"
export
SPCONV_DISABLE_JIT
=
"1"
export
CUMM_CUDA_ARCH_LIST
=
"all"
export
CUMM_CUDA_ARCH_LIST
=
"all"
# export SPCONV_PYTHON_LIST="3.7;3.8;3.9;3.10"
# export SPCONV_PYTHON_LIST="3.7;3.8;3.9;3.10"
...
...
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