-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[CINN] Bucket compilation #59165
[CINN] Bucket compilation #59165
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
另外,我看这里是适配的旧的Build接口,我另一个PR:#59258 在计划清理旧接口了,计划只保留理想态BuildCUDAJITInfo接口(会正式化为Build接口),想问下后续这里的BucketLower对于理想态是计划要怎么适配? |
这里主要是Instruction的问题,BuildCUDAJITInfo中直接调用device kernel的函数指针,但是BucketLower下来后,需要对应codegen和编译出一个host函数指针,分桶的if条件会写入host函数中,未来希望Instruction中放的是host函数指针。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
主要内容: 为OpLowerer添加BucketLower()接口,返回vector<pair<SymbolicCondition, IR>>,内部调用DynamicShapeGroupScheduler得到桶 为ir::Module添加predicate子节点,接收BucketLower的结果 修改SplitCudaAndHostModule(),在此处将host端的IR生成 修改CodegenCudaHost逻辑,支持host端带有if的LoweredFunc codegen到llvm ir
主要内容: 为OpLowerer添加BucketLower()接口,返回vector<pair<SymbolicCondition, IR>>,内部调用DynamicShapeGroupScheduler得到桶 为ir::Module添加predicate子节点,接收BucketLower的结果 修改SplitCudaAndHostModule(),在此处将host端的IR生成 修改CodegenCudaHost逻辑,支持host端带有if的LoweredFunc codegen到llvm ir
PR types
Others
PR changes
Others
Description
Pcard-73602
主要内容: