You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Archermmt (via GitHub)" <gi...@apache.org> on 2023/09/24 23:51:19 UTC

[GitHub] [tvm] Archermmt opened a new pull request, #15813: [Unity][MSC][pre M1.2] Reconstruct codegen

Archermmt opened a new pull request, #15813:
URL: https://github.com/apache/tvm/pull/15813

   This is a pull request for MSC(Multi-System Compile)
   RFC: https://discuss.tvm.apache.org/t/rfc-unity-msc-introduction-to-multi-system-compiler/15251/5
   Tracking issue: https://github.com/apache/tvm/issues/15233
   
   This is the pre-2nd part of Milestone 1: Finish RuntimeManager for frameworks
   
   To limit each PR in reviewable size, the Milestone 1 will be split into some steps:
   M1.1 Add translate && codegen for torch
   **pre M1.2 reconstruct codegen**
   M1.2 Add translate && codegen for tensorflow
   M1.3 Add codegen for tensorrt
   M1.4 Add RuntimeManager and test with relax
   M1.5 Add RuntimeManager and test with torch
   M1.6 Add RuntimeManager and test with tensorflow
   M1.7 Add RuntimeManager and test with tensorrt
   
   After I test some cases in tensorrt and tensorflow, I found out that the codegen module need to be reconstructed. To make the development in tensorflow and tensorrt better, This PR change the design of codegen.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Lunderberg commented on pull request #15813: [Unity][MSC][pre M1.2] Reconstruct codegen

Posted by "Lunderberg (via GitHub)" <gi...@apache.org>.
Lunderberg commented on PR #15813:
URL: https://github.com/apache/tvm/pull/15813#issuecomment-1735629528

   I had a couple of MSC-related CI failures, but they were mainly related to expected IRModule definitions needing to be updated for changed behavior.  If I run the `tests/python/relax/test_analysis_suggest_layout_transforms.py::test_non_affine_access` on https://github.com/apache/tvm/pull/15815, I get the same warning, but the test still passes.
   
   ![image](https://github.com/apache/tvm/assets/3888575/d3936f60-4160-4cb2-a7b7-5a0c19d204c9)
   
   Checking against the CI output for #15815 ([link](https://ci.tlcpack.ai/blue/rest/organizations/jenkins/pipelines/tvm-unity/branches/PR-15815/runs/1/nodes/59/steps/109/log/?start=0)), I see the same non-affine warning occurring there as well, which makes sense for a test validating the behavior under a non-affine transform.
   
   I'm wondering if we want to downgrade the `LOG(WARNING)` to a `DLOG(INFO)`, since it is the expected behavior when analyzing a PrimFunc that is not an affine transformation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Archermmt commented on pull request #15813: [Unity][MSC][pre M1.2] Reconstruct codegen

Posted by "Archermmt (via GitHub)" <gi...@apache.org>.
Archermmt commented on PR #15813:
URL: https://github.com/apache/tvm/pull/15813#issuecomment-1734757371

   @Lunderberg could you please check why the error occurs in CI test:
   
   tests/python/relax/test_analysis_suggest_layout_transforms.py::test_non_affine_access [01:22:12] /workspace/src/relax/analysis/layout_transformation.cc:443: Warning: [LayoutInference] Failed to analyze indices [v_ax0 * v_ax1, v_ax2], error: ["Product of two iterators cannot be represented as an IterMap, occurs in v_ax0 * v_ax1"]
   
   I found out that you meat the same error in https://github.com/apache/tvm/pull/15810 and https://github.com/apache/tvm/pull/15807, but no errors in https://github.com/apache/tvm/pull/15815. Did you fixed the bug?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Unity][MSC][pre M1.2] Reconstruct codegen [tvm]

Posted by "Hzfengsy (via GitHub)" <gi...@apache.org>.
Hzfengsy merged PR #15813:
URL: https://github.com/apache/tvm/pull/15813


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Archermmt commented on pull request #15813: [Unity][MSC][pre M1.2] Reconstruct codegen

Posted by "Archermmt (via GitHub)" <gi...@apache.org>.
Archermmt commented on PR #15813:
URL: https://github.com/apache/tvm/pull/15813#issuecomment-1736428746

   Thanks! Now I understand....


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Lunderberg commented on pull request #15813: [Unity][MSC][pre M1.2] Reconstruct codegen

Posted by "Lunderberg (via GitHub)" <gi...@apache.org>.
Lunderberg commented on PR #15813:
URL: https://github.com/apache/tvm/pull/15813#issuecomment-1735693748

   (Made https://github.com/apache/tvm/pull/15820, which updates the warning to an info.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org