-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[HACKATHON 6th] Support compiling PaddlePaddle with Clang. #62565
Merged
risemeup1
merged 29 commits into
PaddlePaddle:develop
from
silverling:fix_clang_compatibility
Mar 15, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
15a5834
[HACKATHON 6th][CMake Optimization] fix variable type inconsistent
silverling 3d07f95
[HACKATHON 6th][CMake Optimization] fix uninitialized but used variable
silverling e5b09ec
[HACKATHON 6th][CMake Optimization] add flags "-Wno-defaulted-functio…
silverling db64b59
[HACKATHON 6th][CMake Optimization] fix copy elision
silverling 9ee4752
[HACKATHON 6th][CMake Optimization] fix struct and class tag mismatch
silverling e4ec35b
[HACKATHON 6th][CMake Optimization] add copy or copy assignment const…
silverling 6c53752
[HACKATHON 6th][CMake Optimization] fix operator+ infinite recursion
silverling a94437a
[HACKATHON 6th][CMake Optimization] remove unused lambda captures
silverling 7fa668c
[HACKATHON 6th][CMake Optimization] fix overlapping comparisons
silverling 35cd66d
[HACKATHON 6th][CMake Optimization] add final keyword for final subclass
silverling b86ad32
[HACKATHON 6th][CMake Optimization] comment out unused local variable…
silverling 9ef4946
[HACKATHON 6th][CMake Optimization] fix C-compatible declaration for …
silverling 0ca8772
[HACKATHON 6th][CMake Optimization] add override keyword
silverling d0bd6cd
[HACKATHON 6th][CMake Optimization] add macro check for custom device
silverling f6984df
[HACKATHON 6th][CMake Optimization] fix rocksdb compatibility with clang
silverling 732178f
[HACKATHON 6th][CMake Optimization] use C++17 pack arguments expansion
silverling dc0c331
[HACKATHON 6th][CMake Optimization] suppress several warning
silverling a506b76
[HACKATHON 6th][CMake Optimization] comment out unused local variable…
silverling aa51c2f
[HACKATHON 6th][CMake Optimization] make some flags to be clang-specific
silverling 2245efc
[HACKATHON 6th][CMake Optimization] refactor gloo.cmake
silverling 99d0269
[HACKATHON 6th][CMake Optimization] separate clang flags
silverling f7795ca
[HACKATHON 6th][CMake Optimization] adjust clang flags to keep warning
silverling 0b10438
revert [HACKATHON 6th][CMake Optimization] add macro check for custom…
silverling a803dd2
Merge branch 'develop' into fix_clang_compatibility
silverling 7f1ae23
resolve conflicts in op_infermeta_gen.py
silverling 5834d9e
Merge branch 'develop' into fix_clang_compatibility
silverling 2604b33
fix custom_optional unit test
silverling 5568d5f
remove all commented out unused variables
silverling cfb69e9
add compiler flag for GLOO header file
silverling 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.
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.
上边加的几个编译器选项gcc和clang都有这个问题吗?是不是也加一些判断比较好?如果是clang编译器再加?然后如果是第三方库的问题,放在第三方库的.CMAKE里
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.
Done