-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update aligned allocator definition for C++20 compiler supports #438
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #438 +/- ##
=======================================
Coverage 99.82% 99.82%
=======================================
Files 50 50
Lines 4667 4667
=======================================
Hits 4659 4659
Misses 8 8
|
Seems like the CI is currently using appleclang. |
I added a copy of the older CI https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/4734291625/jobs/8403582700?pr=438 |
Do we want to use Appleclang? or brew installed newer clang-16? |
Ideally we should be able to build with both, but it is preferable to favour brew install clang-16 here, as it will also be comparable on the conda forge ecosystem. The older clang-16 build is checked in as a separate CI yaml file with the word |
I don't think we can support applclang as it does not support most of the C++20 features we are using yet. Still, the CI is currently using appleclang. In https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/4734291625/jobs/8403584114?pr=438, you can see
|
FYI, the |
Build issue seems fixed on Conda-Forge. Thanks guys! |
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.
Looks good to me! I derived a patch from this that is already in prod on CF.
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.
I have some comments and questions.
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.
Thank you for the fix, and for addressing my questions.
@mlxd, please remember to update the changelog. |
Context: The allocator definition is incompatible with many C++20 compilers (MacOS on CF, G++ 13+). This PR updates the allocator and associated use to be compliant and pass clang-tidy validations.
Description of the Change: Update allocator definition and use.
Benefits: Fixes build issues on modern compilers.
Possible Drawbacks:
Related GitHub Issues: