-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[cmake治理]cmake optimization of paddle2cinn #59095
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
Merged
risemeup1
merged 6 commits into
PaddlePaddle:develop
from
risemeup1:cmake_optimization_of_paddle2cinn
Nov 21, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f61e96f
cmake optimization
risemeup1 56653db
fix compile bug
risemeup1 e9b4f85
fix compule bug
risemeup1 e27b462
cmake optimization of paddle2cinn
risemeup1 e548977
cmake optimization of paddle2cinn
risemeup1 da364a5
fix bug
risemeup1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,116 +1,25 @@ | ||
| pass_library( | ||
| build_cinn_pass | ||
| base | ||
| DEPS | ||
| cinn_subgraph_detector | ||
| subgraph_detector | ||
| cinn_compiler | ||
| phi | ||
| enforce) | ||
|
|
||
| pass_library(cinn_zero_tensor_trick_pass base) | ||
|
|
||
| cc_library( | ||
| transform_desc | ||
| SRCS transform_desc.cc | ||
| DEPS proto_desc cinnapi) | ||
| cc_library( | ||
| transform_type | ||
| SRCS transform_type.cc | ||
| DEPS phi enforce cinnapi) | ||
| cc_library( | ||
| cinn_cache_key | ||
| SRCS cinn_cache_key.cc | ||
| DEPS graph graph_helper lod_tensor proto_desc transform_type) | ||
| cc_library( | ||
| cinn_subgraph_detector | ||
| SRCS cinn_subgraph_detector.cc | ||
| DEPS graph graph_helper subgraph_detector lod_tensor proto_desc) | ||
| cc_library( | ||
| cinn_graph_symbolization | ||
| SRCS cinn_graph_symbolization.cc | ||
| DEPS lod_tensor graph transform_desc cinnapi) | ||
| cc_library( | ||
| cinn_compiler | ||
| SRCS cinn_compiler.cc | ||
| DEPS framework_proto | ||
| graph | ||
| lod_tensor | ||
| cinn_cache_key | ||
| cinn_graph_symbolization | ||
| cinnapi | ||
| cinn_launch_context | ||
| parallel_executor | ||
| python | ||
| pybind) | ||
|
|
||
| if(WITH_TESTING) | ||
| # cc_test_old(cinn_lib_test SRCS cinn_lib_test.cc DEPS cinnapi) | ||
| # set_tests_properties(cinn_lib_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
|
|
||
| cc_test_old(cinn_cache_key_test SRCS cinn_cache_key_test.cc DEPS | ||
| cinn_cache_key) | ||
| set_tests_properties(cinn_cache_key_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
|
|
||
| cc_test_old( | ||
| build_cinn_pass_test | ||
| SRCS | ||
| build_cinn_pass_test.cc | ||
| DEPS | ||
| fleet_executor | ||
| build_cinn_pass | ||
| cinn_compiler | ||
| op_registry | ||
| mul_op | ||
| activation_op | ||
| elementwise_add_op | ||
| generated_op | ||
| generated_static_op) | ||
| set_tests_properties(build_cinn_pass_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
| target_link_libraries(build_cinn_pass_test ${PYTHON_LIBRARIES}) | ||
|
|
||
| cc_test_old( | ||
| cinn_zero_tensor_trick_pass_test | ||
| SRCS | ||
| cinn_zero_tensor_trick_pass_test.cc | ||
| DEPS | ||
| fleet_executor | ||
| build_cinn_pass | ||
| cinn_compiler | ||
| file(GLOB paddle2cinn_srcs "*.cc") | ||
| set(paddle2cinn_deps | ||
| gtest | ||
| absl | ||
| isl | ||
| mkldnn | ||
| xxhash | ||
| pybind | ||
| python | ||
| op_registry | ||
| elementwise_add_op | ||
| generated_op) | ||
| set_tests_properties(cinn_zero_tensor_trick_pass_test | ||
| PROPERTIES LABELS "RUN_TYPE=CINN") | ||
| target_link_libraries(cinn_zero_tensor_trick_pass_test ${PYTHON_LIBRARIES}) | ||
| pass | ||
| graph_traits | ||
| cinnapi | ||
| cinn_launch_context | ||
| proto_desc | ||
| auto_parallel_proto | ||
| cinn_framework_proto | ||
| schedule_desc_proto | ||
| auto_schedule_proto | ||
| parallel_executor) | ||
|
|
||
| cc_test_old(transform_desc_test SRCS transform_desc_test.cc DEPS | ||
| transform_desc) | ||
| set_tests_properties(transform_desc_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
|
|
||
| cc_test_old(transform_type_test SRCS transform_type_test.cc DEPS | ||
| transform_type) | ||
| set_tests_properties(transform_type_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
|
|
||
| # cc_test_old(cinn_graph_symbolization_test SRCS | ||
| # cinn_graph_symbolization_test.cc DEPS cinn_graph_symbolization) | ||
| # set_tests_properties(cinn_graph_symbolization_test PROPERTIES LABELS | ||
| # "RUN_TYPE=CINN") | ||
|
|
||
| # cc_test_old( | ||
| # cinn_compiler_test | ||
| # SRCS | ||
| # cinn_compiler_test.cc | ||
| # DEPS | ||
| # cinn_compiler | ||
| # place | ||
| # proto_desc | ||
| # graph_viz_pass | ||
| # build_cinn_pass | ||
| # cinnapi | ||
| # mul_op | ||
| # activation_op | ||
| # elementwise_add_op | ||
| # generated_op) | ||
| # set_tests_properties(cinn_compiler_test PROPERTIES LABELS "RUN_TYPE=CINN") | ||
| endif() | ||
| cc_library( | ||
| paddle2cinn | ||
| SRCS ${paddle2cinn_srcs} | ||
| DEPS ${paddle2cinn_deps}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,7 +159,6 @@ elseif(WITH_CINN) | |
| custom_operator | ||
| init_phi | ||
| fleet_executor | ||
| cinn_compiler | ||
| python) | ||
| else() | ||
| nv_test( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
收到