Commit 5fec5c5a by Tianqi Chen Committed by GitHub

[TOPI/TEST] Add Testcase folder for TOPI (#225)

parent 4580e690
...@@ -169,6 +169,7 @@ stage('Integration Test') { ...@@ -169,6 +169,7 @@ stage('Integration Test') {
unpack_lib('gpu') unpack_lib('gpu')
timeout(time: max_time, unit: 'MINUTES') { timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} gpu ./tests/scripts/task_python_integration.sh" sh "${docker_run} gpu ./tests/scripts/task_python_integration.sh"
sh "${docker_run} gpu ./tests/scripts/task_python_topi.sh"
} }
} }
} }
......
export PYTHONPATH=python:topi/python
python -m nose -v topi/tests/python || exit -1
python3 -m nose -v topi/tests/python || exit -1
#!/bin/bash #!/bin/bash
export PYTHONPATH=python:topi/python export PYTHONPATH=python
TVM_FFI=ctypes python -m nose -v tests/python/unittest || exit -1 TVM_FFI=ctypes python -m nose -v tests/python/unittest || exit -1
TVM_FFI=ctypes python3 -m nose -v tests/python/unittest || exit -1 TVM_FFI=ctypes python3 -m nose -v tests/python/unittest || exit -1
......
...@@ -21,6 +21,10 @@ optimizing tvm generated kernels. The goal ...@@ -21,6 +21,10 @@ optimizing tvm generated kernels. The goal
- Some kernels have requirements on shape and data layout, assert them - Some kernels have requirements on shape and data layout, assert them
- Data layout aware, if not specified in argument or in function, assume NCHW by default. - Data layout aware, if not specified in argument or in function, assume NCHW by default.
## Testcase
- Add testcases to testout the schedule and dataflow in the TOPI workflow
- Only do correctness testing without attaching compiler flags and only run it once.
## Performance Tuning Workflow ## Performance Tuning Workflow
Since TVM is work in progress, some optimization might not be perfect. Since TVM is work in progress, some optimization might not be perfect.
One quick way I find useful is to do codegen plus manual modification. One quick way I find useful is to do codegen plus manual modification.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment