Skip to content

Simplify asserts in dlpack tests#1310

Merged
antonwolfy merged 4 commits intoIntelPython:masterfrom
antonwolfy:cached_dev_in_dlpack
Feb 27, 2023
Merged

Simplify asserts in dlpack tests#1310
antonwolfy merged 4 commits intoIntelPython:masterfrom
antonwolfy:cached_dev_in_dlpack

Conversation

@antonwolfy
Copy link
Copy Markdown
Contributor

@antonwolfy antonwolfy commented Feb 20, 2023

Since #1016 dpctl will use a dedicated queue cache with (context, device) pair.
The cache will be available in dpctl.tensor.from_dlpack, so it will return the same queue for a given device.

Thus the PR is to update corresponding tests in dpnp and simplify the verifications asserts by a common function.

  • 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

@antonwolfy antonwolfy merged commit bcbff63 into IntelPython:master Feb 27, 2023
@antonwolfy antonwolfy deleted the cached_dev_in_dlpack branch February 27, 2023 13:44
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