Skip to content

add support for Boolean dtypes for dpctl.tensor.ceil, dpctl.tensor.floor, and dpctl.tensor.trunc #2033

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

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

vtavana
Copy link
Collaborator

@vtavana vtavana commented Mar 27, 2025

In this PR, support for Boolean dtype is added to dpctl.tensor.ceil, dpctl.tensor.floor, and dpctl.tensor.trunc.
resolves #2030

  • 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?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

@vtavana vtavana self-assigned this Mar 27, 2025
Copy link

github-actions bot commented Mar 27, 2025

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

Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_73 ran successfully.
Passed: 894
Failed: 2
Skipped: 154

@coveralls
Copy link
Collaborator

coveralls commented Mar 27, 2025

Coverage Status

coverage: 86.752%. remained the same
when pulling 9a79047 on support-boolean-bounding-funcs
into 63f5129 on master.

Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_74 ran successfully.
Passed: 894
Failed: 2
Skipped: 154

@vtavana vtavana marked this pull request as ready for review March 27, 2025 21:38
@ndgrigorian
Copy link
Collaborator

I've looked it over and the changes look good, but I'd like to fix the Windows CI before merging if possible

Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_75 ran successfully.
Passed: 895
Failed: 1
Skipped: 154

@ndgrigorian
Copy link
Collaborator

@vtavana
Windows CI fix is merged so please merge master into this branch or rebase to pick it up

@vtavana vtavana force-pushed the support-boolean-bounding-funcs branch from dc3eea7 to 9a79047 Compare March 31, 2025 16:54
Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_78 ran successfully.
Passed: 894
Failed: 2
Skipped: 154

Copy link
Collaborator

@ndgrigorian ndgrigorian 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 @vtavana

@vtavana vtavana merged commit 579d2f8 into master Mar 31, 2025
68 checks passed
@ndgrigorian ndgrigorian deleted the support-boolean-bounding-funcs branch April 15, 2025 16:20
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.

dpctl.tensor returns int8 arrays from ceil, trunc and floor function for bool input array
4 participants