-
Notifications
You must be signed in to change notification settings - Fork 39
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
Bump Kokkos version to 4.3.01 #725
Conversation
Hello. You may have forgotten to update the changelog!
|
[sc-63118] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #725 +/- ##
==========================================
+ Coverage 93.36% 99.15% +5.78%
==========================================
Files 116 134 +18
Lines 16815 18989 +2174
==========================================
+ Hits 15699 18828 +3129
+ Misses 1116 161 -955 ☔ View full report in Codecov by Sentry. |
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.
Do we want to check if the wheels still build alright?
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsGenerator.hpp
Outdated
Show resolved
Hide resolved
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.
Thanks @mlxd!
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsGenerator.hpp
Outdated
Show resolved
Hide resolved
…nto update/kokkos_version
…ane-lightning into update/kokkos_version
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've added a tag to docker-build on the present branch, but it is failing because we are still building on an ad hoc branch of Kokkos. I have a PR #722 which fixes some issues in the Dockerfile. I think I should update the Dockerfile to work with Kokkos 4.3 there.
@@ -482,7 +482,7 @@ row-major format. | |||
*/ | |||
template <template <typename...> class ComplexT, typename T> | |||
static auto getCRot(T phi, T theta, T omega) -> std::vector<ComplexT<T>> { | |||
const auto rot{std::move(getRot<ComplexT, T>(phi, theta, omega))}; | |||
const auto rot{getRot<ComplexT, T>(phi, theta, omega)}; |
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.
Nice catch!
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.
Thanks @mlxd ! Looks good to me!
Thanks folks. Ignoring the existing CF error, as it seems like we are optimal for now. |
* Bump Kokkos version * Auto update version from '0.37.0-dev6' to '0.37.0-dev8' * Auto update version from '0.37.0-dev8' to '0.37.0-dev9' * Replace all Kokkos versions with 4.3 to update cache * Auto update version from '0.37.0-dev9' to '0.37.0-dev10' * Update changelog * Auto update version from '0.37.0-dev11' to '0.37.0-dev12' * Auto update version from '0.37.0-dev12' to '0.37.0-dev13' * Fix warning: moving a temporary object prevents copy elision * Ensure kokkos_swap used throughout * Auto update version from '0.37.0-dev13' to '0.37.0-dev14' --------- Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context: Building Catalyst currently causes issues with Kokkos path resolution. This PR aims to update the Kokkos version to offer a potential route to rectify this issue.
Description of the Change: Updates kokkos to 4.3.01
Benefits: New support for Kokkos architectures and performance gains. Potential fix for Catalyst runtime Kokkos failure.
Possible Drawbacks:
Related GitHub Issues: PennyLaneAI/catalyst#732