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

Expose DLDeviceType enumerator in dpctl.tensor #1793

Conversation

ndgrigorian
Copy link
Collaborator

This PR exposes the DLDeviceType enumerators in dpctl.tensor.

Additionally, this PR adds documentation for the enumerator values based on the documentation in dlpack.h and adds tensor.constants.rst which contains this documentation, as well as documentation on dpt.pi, dpt.e, etc.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

Copy link

github-actions bot commented Aug 8, 2024

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

Copy link

github-actions bot commented Aug 8, 2024

Array API standard conformance tests for dpctl=0.18.0dev0=py310ha798474_246 ran successfully.
Passed: 894
Failed: 1
Skipped: 119

@ndgrigorian ndgrigorian force-pushed the document-dldevicetype-constants branch from a416a27 to c489c7e Compare August 8, 2024 02:05
@ndgrigorian ndgrigorian force-pushed the document-dldevicetype-constants branch from c489c7e to 353be0d Compare August 8, 2024 02:08
Copy link

github-actions bot commented Aug 8, 2024

Array API standard conformance tests for dpctl=0.18.0dev0=py310ha798474_246 ran successfully.
Passed: 894
Failed: 1
Skipped: 119

1 similar comment
Copy link

github-actions bot commented Aug 8, 2024

Array API standard conformance tests for dpctl=0.18.0dev0=py310ha798474_246 ran successfully.
Passed: 894
Failed: 1
Skipped: 119

Copy link
Collaborator

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @ndgrigorian

The constants page fits right in!

@oleksandr-pavlyk oleksandr-pavlyk merged commit 2bd92df into feature/dlpack-kdlcpu-support Aug 8, 2024
48 of 49 checks passed
@oleksandr-pavlyk oleksandr-pavlyk deleted the document-dldevicetype-constants branch August 8, 2024 13:32
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.

2 participants