Skip to content

Skip tests on devices that don't support a USM type - #2418

Merged
ndgrigorian merged 3 commits into
masterfrom
fix-tests-for-unsupported-usm-types
Dec 4, 2026
Merged

ndgrigorian merged 3 commits into
masterfrom
fix-tests-for-unsupported-usm-types

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

This PR fixes tests that allocate shared, host, or device USM so that they skip on devices without the corresponding usm_*_allocations aspect

The check already used by the memset and fill tests is moved into dpctl/tests/helper as skip_if_usm_unsupported

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

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

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

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.182%. remained the same — fix-tests-for-unsupported-usm-types into master

@ndgrigorian
ndgrigorian force-pushed the fix-tests-for-unsupported-usm-types branch from ed110d4 to b5538c5 Compare November 5, 2026 17:31
antonwolfy
antonwolfy previously approved these changes Dec 2, 2026

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks for consolidating the helper. Two minor nits inline, none of them blocking.

Comment thread dpctl/tests/helper/_helper.py Resolved
Comment thread dpctl/tests/helper/_helper.py Resolved

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM
Thank you @ndgrigorian
Just a small nit below:

Comment thread dpctl/tests/test_sycl_context.py Resolved
@vlad-perevezentsev
vlad-perevezentsev self-requested a review December 4, 2026 16:40
Move the USM aspect check from the memset and fill tests into dpctl/tests/helper and use it wherever tests allocate shared, host, or device USM.
Cover the pickling tests and test_queue_memops, which master changed to use shared USM.
skip_if_usm_unsupported resolves the aspect via issubclass, accepts filter strings, and raises TypeError on unsupported arguments. test_context_multi_device checks both USM kinds on both sub-devices before allocating.
@ndgrigorian
ndgrigorian force-pushed the fix-tests-for-unsupported-usm-types branch from b5538c5 to 8fc7d45 Compare December 4, 2026 17:31

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No more comments from my side
LGTM
Thank you @ndgrigorian

@ndgrigorian
ndgrigorian merged commit c3d0ec4 into master Dec 4, 2026
47 of 61 checks passed
@ndgrigorian
ndgrigorian deleted the fix-tests-for-unsupported-usm-types branch December 4, 2026 17:50
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