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

Testing/gpu #494

Merged
merged 120 commits into from
Oct 12, 2023
Merged

Testing/gpu #494

merged 120 commits into from
Oct 12, 2023

Conversation

vincentmr
Copy link
Contributor

@vincentmr vincentmr commented Sep 6, 2023

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:
L-Kokkos supports GPU execution with CUDA-12 and L-GPU is on the verge of being merged into pennylane-lightning. There are no GPU tests to back these backends however.

Description of the Change:

  • Add GPU test workflow.
  • Combine test and codecov builds for efficiency.
  • Introduce a few keywords to enhance robustness in the CI (e.g. fail-on-cache-miss).
  • Remove deprecated ENABLE_KOKKOS option from doc.

Benefits:

Possible Drawbacks:

Combining test and codecov builds might have issues due to AVX kernels (to be monitored).

Related GitHub Issues:

@vincentmr vincentmr marked this pull request as ready for review September 22, 2023 20:26
@vincentmr vincentmr requested a review from a team September 22, 2023 20:26
Copy link
Member

@mlxd mlxd left a comment

Choose a reason for hiding this comment

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

Thanks @vincentmr
Just a few questions

.github/workflows/tests_gpu.yml Outdated Show resolved Hide resolved
.github/workflows/tests_gpu.yml Outdated Show resolved Hide resolved
.github/workflows/tests_gpu.yml Outdated Show resolved Hide resolved
.github/workflows/tests_gpu.yml Show resolved Hide resolved
.github/workflows/tests_gpu.yml Outdated Show resolved Hide resolved
.github/workflows/tests_gpu.yml Outdated Show resolved Hide resolved
.github/workflows/tests_linux.yml Show resolved Hide resolved
@vincentmr vincentmr requested review from mlxd and a team October 2, 2023 13:11
Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Just a few comments.

Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Nothing more to add. Thank you for that!

@vincentmr vincentmr requested a review from a team October 11, 2023 21:20
Copy link
Member

@mlxd mlxd left a comment

Choose a reason for hiding this comment

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

Awesome work @vincentmr
Does this mean we can use CUDA 12 with LKokkos now?

@vincentmr
Copy link
Contributor Author

Awesome work @vincentmr Does this mean we can use CUDA 12 with LKokkos now?

Yes. In fact, CUDA-12 is now required to compile L-Kokkos as it uses C++20 features (not just a CUDA-lib API like L-GPU).

@vincentmr vincentmr merged commit b368a5f into master Oct 12, 2023
67 checks passed
@vincentmr vincentmr deleted the testing/gpu branch October 12, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants