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 missing stream keyword argument to dpnp.ndarray.to_device method #2263

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jan 15, 2025

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.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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 filing the PR as a draft?

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.944% (+0.001%) from 70.943%
when pulling de9d72a on add-stream-argument-to-to_device
into 498e705 on master.

Copy link
Collaborator

@AlexanderKalistratov AlexanderKalistratov left a comment

Choose a reason for hiding this comment

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

Everything is good, but we are not testing actual functionality of stream keyword which purpose is to do synchronization.

We need to figure out how to properly test it.

dpnp/tests/test_sycl_queue.py Show resolved Hide resolved
dpnp/tests/test_sycl_queue.py Outdated Show resolved Hide resolved
dpnp/tests/test_sycl_queue.py Show resolved Hide resolved
Copy link
Contributor

Array API standard conformance tests for dpnp=0.17.0dev4=py312he4f9c94_12 ran successfully.
Passed: 950
Failed: 0
Skipped: 50

@antonwolfy
Copy link
Contributor Author

@AlexanderKalistratov , I've applied the comments, please rereview.

Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev 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 @antonwolfy

@antonwolfy antonwolfy merged commit 6cc2348 into master Jan 17, 2025
45 of 59 checks passed
@antonwolfy antonwolfy deleted the add-stream-argument-to-to_device branch January 17, 2025 15:55
github-actions bot added a commit 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