[Phi] Unify kernel build targets #41091
Merged
+55
−55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
Others
Describe
[Phi] Unify kernel build targets
尽可能减少phi kernel的编译单元,可能判断代码会有点冗余,但视情况合并编译target,可以在整体上有效减少xxx_library的调用次数,可以作为临时方案解决windows编译失败的问题
但是目前phi kernel仅迁移了不到一半的原fluid kernel,后续kernel迁移增多,target还是会继续增多,需要有针对此windows编译问题的解决预案,并且列入计划,比如拆分静态库,unity build等