Skip to content

Commit

Permalink
Fixups for merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and driazati committed Aug 1, 2022
1 parent 894f369 commit 8ab1416
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 51 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/wheel_manylinux_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
- release/*
workflow_dispatch:
pull_request:
branches:
Expand All @@ -19,6 +18,8 @@ jobs:
fail-fast: false
matrix:
# matrix of build configs
pkg:
- pypi-nightly
config:
- cuda: 'none'
image: 'tlcpack/package-cpu:v0.5'
Expand All @@ -40,15 +41,13 @@ jobs:
set -eux
git clone https://github.com/apache/tvm tvm --recursive
- name: Sync Package
env:
TAG: pypi
run: |
set -eux
python3 common/sync_package.py \
--cuda ${{ matrix.config.cuda }} \
--package-name ${{ matrix.config.package_name }} \
--use-public-version \
"$TAG"
${{ matrix.pkg }}
- name: Build
env:
IMAGE: ${{ matrix.config.image }}
Expand All @@ -61,22 +60,21 @@ jobs:
env:
IMAGE: ${{ matrix.config.image }}
WHEEL_TEST: "True"
# continue-on-error: true
run: |
set -eux
docker/bash.sh --no-gpu $IMAGE ./wheel/run_tests.sh
- uses: actions/upload-artifact@v3
with:
name: wheel-${{ matrix.config.package_name }}-${{ matrix.config-cuda }}
path: tvm/python/repaired_wheels
# - name: Wheel-Deploy-Pypi
# # if: github.ref == 'refs/heads/main'
# env:
# TWINE_NON_INTERACTIVE: 1
# TWINE_REPOSITORY: pypi
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
# run: |
# set -eux
# python3 -m pip install twine
# twine upload tvm/python/repaired_wheels/*
- name: Wheel-Deploy-Pypi
if: github.ref == 'refs/heads/main'
env:
TWINE_NON_INTERACTIVE: 1
TWINE_REPOSITORY: pypi
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
run: |
set -eux
python3 -m pip install twine
twine upload tvm/python/repaired_wheels/*
40 changes: 12 additions & 28 deletions .github/workflows/wheel_winmac_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
push:
branches:
- main
- release/*
- release-build-macos
pull_request:
branches:
- main
Expand All @@ -20,7 +18,8 @@ jobs:
matrix:
os:
- macOS-latest
# pkg: ['tlcpack', 'tlcpack-nightly']
pkg:
- apache-tvm
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -46,14 +45,12 @@ jobs:
run: |
git clone https://github.com/apache/tvm tvm --recursive
- name: Sync Package
env:
TAG: apache-tvm
run: |
set -eux
python3 common/sync_package.py \
--package-name apache-tvm \
--use-public-version \
"$TAG"
${{ matrix.pkg }}
- name: Build@MacOS
if: startsWith(matrix.os, 'macOS')
shell: bash -l {0}
Expand Down Expand Up @@ -110,20 +107,6 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
# Use system python instead of conda for upload
- name: Wheel-Deploy-Pypi
# if: github.ref == 'refs/heads/main'
env:
TWINE_NON_INTERACTIVE: 1
# TWINE_REPOSITORY: pypi
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
run: |
set -eux
python3 -m pip install twine
find .
# find tvm/python | grep wheels
# twine upload tvm/python/repaired_wheels/*
- uses: actions/upload-artifact@v3
with:
name: release-wheels
Expand All @@ -132,11 +115,12 @@ jobs:
with:
name: release-build
path: tvm/python/build/
# - name: Wheel-Deploy
# # if: github.ref == 'refs/heads/main'
# env:
# GITHUB_TOKEN: ${{ secrets.TLCPACK_GITHUB_TOKEN }}
# run: |
# set -eux
# python3 -m pip install github3.py
# python3 wheel/wheel_upload.py --tag v0.7.dev1 tvm/python/dist
# Use system python instead of conda for upload
- name: Wheel-Deploy
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.TLCPACK_GITHUB_TOKEN }}
run: |
set -eux
python3 -m pip install github3.py
python3 wheel/wheel_upload.py --tag v0.7.dev1 tvm/python/dist
2 changes: 1 addition & 1 deletion wheel/build_lib_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cmake -A x64 -Thost=x64 ^
-DUSE_RPC=ON ^
-DUSE_SORT=ON ^
-DUSE_RANDOM=ON ^
-DSUMMARIZE=ONE ^
-DSUMMARIZE=ON ^
-DUSE_GRAPH_RUNTIME_DEBUG=ON ^
..

Expand Down
13 changes: 7 additions & 6 deletions wheel/build_wheel_manylinux.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
set -eux

source /multibuild/manylinux_utils.sh

function usage() {
echo "Usage: $0 [--cuda CUDA]"
echo
echo -e "--cuda {none 10.2 11.0 11.1 11.3}"
echo -e "--cuda {none 10.2 11.0 11.1 11.3, 11.6}"
echo -e "\tSpecify the CUDA version in the TVM (default: none)."
}

Expand Down Expand Up @@ -45,7 +46,7 @@ function audit_tlcpack_wheel() {
TVM_PYTHON_DIR="/workspace/tvm/python"
PYTHON_VERSIONS_CPU=("3.7" "3.8" "3.9" "3.10")
PYTHON_VERSIONS_GPU=("3.7" "3.8")
CUDA_OPTIONS=("none" "10.2" "11.0" "11.1" "11.3")
CUDA_OPTIONS=("none" "10.2" "11.0" "11.1" "11.3" "11.6")
CUDA="none"

while [[ $# -gt 0 ]]; do
Expand All @@ -58,22 +59,22 @@ while [[ $# -gt 0 ]]; do
;;
-h|--help)
usage
exit -1
exit 1
;;
*) # unknown option
echo "Unknown argument: $arg"
echo
usage
exit -1
exit 1
;;
esac
done

if ! in_array "${CUDA}" "${CUDA_OPTIONS[*]}" ; then
echo "Invalid CUDA option: ${CUDA}"
echo
echo 'CUDA can only be {"none", "10.0", "10.1", "10.2"}'
exit -1
echo 'CUDA can only be' "${CUDA_OPTIONS[@]}"
exit 1
fi

if [[ ${CUDA} == "none" ]]; then
Expand Down

0 comments on commit 8ab1416

Please sign in to comment.