-
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] Optimize parallel compiler and support dumping more compilation information #55590
[CINN] Optimize parallel compiler and support dumping more compilation information #55590
Conversation
1. Unify FLAGS_cinn_parallel_compile_size and FLAGS_cinn_parallel_compile_thread 2. Add more flags to dump more compile info 3. Support dump lower_func, source_code, ptx and instruction 4. Return more compile info from parallel compiler to graph compiler 5. Refactor graph visualization 6. Refactor parallel compiler's task split
你的PR提交成功,感谢你对开源项目的贡献! |
A task corresponds to a fusion group, which is assigned to available threads
Skip test case on op constant
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
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
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
…n information (PaddlePaddle#55590) graph_compiler_util.h/cc: 整合GraphCompiler与ParallelCompiler共同持有的数据结构CompilationStage、CompilationStatus、CompilationContext、CompilationResult Parallel Compiler: 整合数据结构至CompilationContext 支持分阶段编译,通过指定CompilationContext::Stage 添加编译状态信息,包括状态CompilationResult::Status和信息CompilationResult::message 一个Task对应一个fusion_group,每一阶段编译完成后,将编译结果放入CompilationResult数组的对应下标中,删去原Task中内部的局部变量,省去了MergeResult Graph Compiler: 丰富CompilationResult,提供编译各阶段的中间结果 整合数据结构至CompilationContext 添加编译状态信息,包括状态CompilationResult::Status和信息CompilationResult::message 启用单测 其他:相关单测、前端接口、paddle2cinn适配CompilationContext
PR types
Others
PR changes
Others
Description
Pcard-73602
graph_compiler_util.h/cc
:GraphCompiler
与ParallelCompiler
共同持有的数据结构CompilationStage
、CompilationStatus
、CompilationContext
、CompilationResult
Parallel Compiler
:CompilationContext
CompilationContext::Stage
CompilationResult::Status
和信息CompilationResult::message
Task
对应一个fusion_group
,每一阶段编译完成后,将编译结果放入CompilationResult
数组的对应下标中,删去原Task
中内部的局部变量,省去了MergeResult
Graph Compiler
:CompilationResult
,提供编译各阶段的中间结果CompilationContext
CompilationResult::Status
和信息CompilationResult::message
CompilationContext