zhuwenxi commented on issue #7596:
URL: https://github.com/apache/tvm/issues/7596#issuecomment-801669860


   > Hi @zhuwenxi , that's a bug. Actually, this is a case from tutorial 
**extern op**, [link 
](https://tvm.apache.org/docs/tutorials/language/extern_op.html). After 
investigating, I have found this issue was introduced by #5417. See 
[diff](https://github.com/apache/tvm/commit/8d7249688771bb6806595931586d95648036f383?branch=8d7249688771bb6806595931586d95648036f383&diff=unified#diff-68d4c81453bf10caf7ae867ee644de009e7fed808ce871b54364d27134e920e7R186-R194).
   > 
   > You can comment out this ICHECK as a workaround.
   > 
   > ```c++
   > CHECK(GetUniqueName(packed_func_name) == packed_func_name) <<
   >         "Expected name " << packed_func_name << " to not be taken";
   > ```
   
   @leeexyz I found that 1) comment the ICHECK line 2) use export_library() and 
load_module() didn't solve all the problem. Still, the program is not able to 
compile:
   
![image](https://user-images.githubusercontent.com/4969797/111582831-5a341780-87f6-11eb-923e-9309228b2729.png)
   
   I think the root cause is "tvm.contrib.cblas.matmul" is not a qualified c 
variable name. Below is the c source file generated by tvmc backend:
   <img width="1558" 
alt="WeChatWorkScreenshot_c4c8f1de-7a24-4c90-b39c-3e8a7f58088a" 
src="https://user-images.githubusercontent.com/4969797/111583061-c747ad00-87f6-11eb-8f65-f8097feb35fe.png";>
   
   We probably need to do some major change in tvmc to enable packed func call.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to