Skip to content
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

Refactor CUDA Utils Python binding #801

Merged
merged 12 commits into from
Jul 17, 2024
Merged

Conversation

multiphaseCFD
Copy link
Member

@multiphaseCFD multiphaseCFD commented Jul 16, 2024

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 the
    change, 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:

Move Python bindings for CUDA utils to a separate module, registerCudaUtils, which can be shared between L-GPU and L-Tensor.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@multiphaseCFD multiphaseCFD added ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request ci:build_wheels Activate wheel building. labels Jul 16, 2024
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.19%. Comparing base (4ec49b8) to head (bfeb2af).
Report is 91 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #801      +/-   ##
==========================================
+ Coverage   99.09%   99.19%   +0.10%     
==========================================
  Files         114      148      +34     
  Lines       17653    22645    +4992     
==========================================
+ Hits        17493    22463    +4970     
- Misses        160      182      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@multiphaseCFD multiphaseCFD changed the title Add CUDA Utils Python binding Refactor CUDA Utils Python binding Jul 16, 2024
@multiphaseCFD multiphaseCFD marked this pull request as ready for review July 16, 2024 15:45
@multiphaseCFD multiphaseCFD requested review from maliasadi, vincentmr and a team July 16, 2024 15:45
Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @multiphaseCFD . To be sure, pennylane_lightning/core/src/bindings/BindingsCudaUtils.hpp only gathered duplicate definitions, nothing new right?

@multiphaseCFD
Copy link
Member Author

LGTM! Thanks @multiphaseCFD . To be sure, pennylane_lightning/core/src/bindings/BindingsCudaUtils.hpp only gathered duplicate definitions, nothing new right?

Thanks @vincentmr ! Correct, BindingsCudaUtils.hpp only gathered duplicate definitions.

Copy link
Contributor

@LuisAlfredoNu LuisAlfredoNu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks fine. Thank you

@multiphaseCFD multiphaseCFD merged commit 7deee74 into master Jul 17, 2024
120 checks passed
@multiphaseCFD multiphaseCFD deleted the add_cuda_utils_pybinding branch July 17, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build_wheels Activate wheel building. ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants