[TVM EP] Integrate tests for TVM EP into public onnxruntime CI - #10505
Xavier Dupré (xadupre) merged 21 commits into
Conversation
2c3379c to
82ba76a
Compare
4a1350f to
ee61b1e
Compare
|
Hello Edward Chen (@edgchen1)! |
|
Thank you Alexey Gladyshev (@KJlaccHoeUM9l) ! CC Xavier Dupré (@xadupre) - FYI; this PR adds CI for TVM EP; it's ready for review. |
| endif() | ||
|
|
||
| add_definitions(-DTVM_LOG_CUSTOMIZE=1) | ||
| add_library(custom_logger STATIC ${ONNXRUNTIME_ROOT}/core/providers/tvm/custom_logging.cc) |
There was a problem hiding this comment.
can it be called tvm_custom_logger instead?
There was a problem hiding this comment.
done
| set(USE_CUDA ON CACHE BOOL "Only defined for TVM" FORCE) | ||
| endif() | ||
|
|
||
| add_definitions(-DTVM_LOG_CUSTOMIZE=1) |
There was a problem hiding this comment.
| add_definitions(-DTVM_LOG_CUSTOMIZE=1) | |
| add_compile_definitions(TVM_LOG_CUSTOMIZE=1) |
There was a problem hiding this comment.
done
| displayName: 'Install python deps' | ||
| inputs: | ||
| script: | | ||
| python3 -m pip install decorator scipy |
There was a problem hiding this comment.
what are these used by? I only see a docker run later that does anything substantial. these dependencies won't be in the actual docker image right?
There was a problem hiding this comment.
see comment below
| @@ -0,0 +1,62 @@ | |||
| jobs: | |||
There was a problem hiding this comment.
has this pipeline been tested out yet?
There was a problem hiding this comment.
see comment below
5becef1 to
7e4723e
Compare
|
Created a build definition on our end to test this out. FYI, I created a branch that mirrors this one that we can use to test the builds. I don't plan to update it outside of additional merges from this branch. |
Edward Chen (@edgchen1), thank you for the explanation! Resolved. |
|
/azp run Linux TVM CI Pipeline |
|
Commenter does not have sufficient privileges for PR 10505 in repo microsoft/onnxruntime |
|
Edward Chen (@edgchen1), could you restart the pipeline? |
|
/azp run Linux TVM CI Pipeline |
|
No pipelines are associated with this pull request. |
|
/azp Linux CPU CI Pipeline |
|
Command 'Linux' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
|
/azp run Linux CPU CI Pipeline |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…te build definition.
|
Here's the build I ran initially: With some small changes it passes: Here's a PR with the changes: |
Move install_tvm_test_dependencies.sh out of Docker context dir, update build definition.
|
Hello Edward Chen (@edgchen1)! |
|
Hello Xavier Dupré (@xadupre)! |
|
/azp run Linux CPU CI Pipeline |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux Nuphar CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline |
|
Azure Pipelines successfully started running 8 pipeline(s). |
|
/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows WebAssembly CI Pipeline, orttraining-amd-gpu-ci-pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, onnxruntime-python-checks-ci-pipeline |
|
Azure Pipelines successfully started running 8 pipeline(s). |
|
/azp run Linux TVM CI Pipeline |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Edward Chen (edgchen1)
left a comment
There was a problem hiding this comment.
CI pipeline related changes look good to me
|
Hello Xavier Dupré (@xadupre)! |
…soft#10505) * add support for bool type * add TVM EP support for tests * include TVM EP in python test pool * fix pylint * moved technical imports to a separate file * clean up post build actions & move _ld_preload.py extension to CMake level * add files for include TVM EP into CI * implement custom logger for TVM * replace TVM logging with ONNX RT logging * update link for TVM EP tutorial * clean up TVM EP cmake * add pybind auto enabling for TVM EP * fix blank spaces * code review fixes * replace print with comment * add list of EP without TVM EP * enable onnx tests * disable contrib ops and ml ops * reuse Dockerfile.ubuntu * Move install_tvm_test_dependencies.sh out of Docker context dir, update build definition. Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com> (cherry picked from commit 7dc7529)
This PR is waiting for PR#10260 to be merged.
TVM EPis not currently being tested in public CI. Because of this, any changes made by third party contributors could potentially result in theTVM EPnot working. To avoid this we have created this PR which is to add testing ofTVM EPin public CI.Notes:
booltypes. A similar input tensor is used in this test;TVM EP;_ld_preload.pyconditional extension fromsetup.pyto CMake level;TVM EPto run onnxruntime_test_python.py withbuild.py;Dockerfileandworkflow configto integrateTVM EPtests into azure pipeline;If there are things that were not taken into account for integrating
TVM EPinto public CI, please let us know.