Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/scripts/task_python_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mv out docs/_build/html/jsdoc
make javadoc
mv jvm/core/target/site/apidocs docs/_build/html/javadoc

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
find . -type f -path "*.pyc" | xargs rm -f

cd docs
PYTHONPATH=`pwd`/../python make html
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/task_python_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export PYTHONPATH=python:topi/python
export TVM_BIND_THREADS=0
export OMP_NUM_THREADS=1

find . -type f -path "*.pyc" | xargs rm -f

# Rebuild cython
make cython3

Expand Down
3 changes: 2 additions & 1 deletion tests/scripts/task_python_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export LD_LIBRARY_PATH="build:${LD_LIBRARY_PATH:-}"
export TVM_BIND_THREADS=0
export TVM_NUM_THREADS=2

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f

# Test TVM
make cython3
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/task_python_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export PYTHONPATH=python:topi/python
# Rebuild cython
make cython3

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
rm -rf topi/python/topi/*.pyc topi/python/topi/*/*.pyc topi/python/topi/*/*/*.pyc topi/python/topi/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f

python3 -m pytest -v topi/tests/python/nightly
4 changes: 2 additions & 2 deletions tests/scripts/task_python_topi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export PYTHONPATH=python:topi/python
# Rebuild cython
make cython3

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
rm -rf topi/python/topi/*.pyc topi/python/topi/*/*.pyc topi/python/topi/*/*/*.pyc topi/python/topi/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f

python3 -m pytest -v topi/tests/python
3 changes: 2 additions & 1 deletion tests/scripts/task_python_unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ set -u

export PYTHONPATH=python:topi/python

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f

TVM_FFI=ctypes python3 -m pytest -v tests/python/unittest
make cython3
Expand Down
4 changes: 3 additions & 1 deletion tests/scripts/task_python_vta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ set -u

export PYTHONPATH=python:vta/python:topi/python

rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc python/tvm/*/*/*/*.pyc
# cleanup pycache
find . -type f -path "*.pyc" | xargs rm -f

rm -rf ~/.tvm

# Rebuild cython
Expand Down