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

Add GPU device compute capability check for LTensor #803

Merged
merged 8 commits into from
Jul 17, 2024

Conversation

multiphaseCFD
Copy link
Member

@multiphaseCFD multiphaseCFD commented Jul 17, 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:

Add GPU device compute capability check. L-Tensor has device compute capability check like L-GPU now.
[SC-69118]

Description of the Change:

Benefits:

Error will be raised when running lightning.tensor on a unsupported GPU.

Possible Drawbacks:

Related GitHub Issues:

#799

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.67%. Comparing base (7deee74) to head (da0a515).
Report is 90 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (7deee74) and HEAD (da0a515). Click for more details.

HEAD has 5 uploads less than BASE
Flag BASE (7deee74) HEAD (da0a515)
10 5
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #803       +/-   ##
===========================================
- Coverage   94.92%   41.67%   -53.25%     
===========================================
  Files         114       17       -97     
  Lines       17635     1886    -15749     
===========================================
- Hits        16740      786    -15954     
- Misses        895     1100      +205     

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

@multiphaseCFD multiphaseCFD marked this pull request as ready for review July 17, 2024 17:42
@multiphaseCFD multiphaseCFD requested a review from a team July 17, 2024 17:43
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, cheers @multiphaseCFD .

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.

good

@multiphaseCFD multiphaseCFD merged commit c81ce7d into master Jul 17, 2024
56 of 57 checks passed
@multiphaseCFD multiphaseCFD deleted the ltensor_device_check branch July 17, 2024 18:19
multiphaseCFD added a commit that referenced this pull request Jul 17, 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`](../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`.

- [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [x] 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:**

Add GPU device compute capability check. L-Tensor has device compute
capability check like L-GPU now.
[SC-69118]

**Description of the Change:**

**Benefits:**

Error will be raised when running `lightning.tensor` on a unsupported
GPU.

**Possible Drawbacks:**

**Related GitHub Issues:**

#799

---------

Co-authored-by: ringo-but-quantum <[email protected]>
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