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 stream argument validation #1969

Merged
merged 3 commits into from
Jan 16, 2025
Merged

Conversation

oleksandr-pavlyk
Copy link
Collaborator

If stream argument is not dpctl.SyclQueue, raise TypeError

  • 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?

Copy link

github-actions bot commented Jan 15, 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.19.0dev0=py310h93fe807_448 ran successfully.
Passed: 895
Failed: 1
Skipped: 118

@coveralls
Copy link
Collaborator

coveralls commented Jan 15, 2025

Coverage Status

coverage: 87.734% (+0.01%) from 87.721%
when pulling 74066bb on stream-keyword-validation
into a86da4b on master.

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the stream-keyword-validation branch from ef45728 to df8c1f3 Compare January 16, 2025 01:34
Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_469 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

Stream keyword validation and deployment was copy-pasted in several
places. Created function _stream_validate_and_use, and used it in
a couple of places.

This brings uniformity of error messages, and should improve coverage
and maintainability.
Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_470 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

Copy link
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Thank you @oleksandr-pavlyk, LGTM

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!

@oleksandr-pavlyk oleksandr-pavlyk merged commit bcef07a into master Jan 16, 2025
63 checks passed
@oleksandr-pavlyk oleksandr-pavlyk deleted the stream-keyword-validation branch January 16, 2025 19:23
antonwolfy added a commit to IntelPython/dpnp that referenced this pull request Jan 17, 2025
…hod (#2263)

The PR proposes to align `dpnp.ndarray.to_device` method with python
array API and to add support of `stream` keyword argument.
The tests coverage is extended to cover new argument. Previously muted
array-api test is enabled back.

Note, tests for `dpnp.__dlpack__` are updated due to recent changes done
in [dpctl#1969](IntelPython/dpctl#1969).
github-actions bot added a commit to IntelPython/dpnp that referenced this pull request Jan 17, 2025
…hod (#2263)

The PR proposes to align `dpnp.ndarray.to_device` method with python
array API and to add support of `stream` keyword argument.
The tests coverage is extended to cover new argument. Previously muted
array-api test is enabled back.

Note, tests for `dpnp.__dlpack__` are updated due to recent changes done
in [dpctl#1969](IntelPython/dpctl#1969). 6cc2348
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