Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlir的一点疑问 #10

Closed
zouxz opened this issue Sep 9, 2022 · 2 comments
Closed

mlir的一点疑问 #10

zouxz opened this issue Sep 9, 2022 · 2 comments
Labels
question Further information is requested

Comments

@zouxz
Copy link

zouxz commented Sep 9, 2022

请教一下作者大佬:
1、目前来看基于mlir做编译栈的最主要因素是什么呢?这种dsa架构是否用tvm这种端到端的编译器开发起来要快一点?
2、mlir的愿景是提供一个编译器生态,就算各家厂商通过dialect把自己硬件相关的ir优化接入mlir,并且开源,但是别人也很难用上啊,毕竟用的不是同一个硬件后端。那这样各家都自己搞一套优化然后再接入dialect,感觉这样反而冗余了。

@HarmonyHu
Copy link
Collaborator

你好。

  1. 基于MLIR做编译器,主要是借助它成熟架构和分层设计。哪一种更快不好说。
  2. MLIR的愿景和LLVM的是一样的,它试图通过分层IR,把不同的前端编译到不同的后端。因为这本身就是个非常复杂的工程,所以感觉难用是很正常的。MLIR目前朝着这个愿景在探索,个人觉得它还是提供了很大的便利。

@HarmonyHu
Copy link
Collaborator

close

@HarmonyHu HarmonyHu added the question Further information is requested label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants