Skip to content

Restructure Python examples#2292

Merged
ndgrigorian merged 7 commits into
masterfrom
restructure-python-examples
May 26, 2026
Merged

Restructure Python examples#2292
ndgrigorian merged 7 commits into
masterfrom
restructure-python-examples

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

@ndgrigorian ndgrigorian commented Apr 23, 2026

This PR proposes a restructuring of the Python examples, specifically the USM-related examples

These examples were each very simple scripts, all relating to various operations with USM: allocation, host-access, and copying between host and device. By consolidating them, they can be run using the same _runner construct as the other examples.

As a result of this, the Conda package workflow's run of examples is updated to use the runner construct. This also means that all of the examples are being run, instead of just the USM examples.

  • 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
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

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

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 23, 2026

Coverage Status

coverage: 75.39%. remained the same — restructure-python-examples into master

@ndgrigorian ndgrigorian force-pushed the restructure-python-examples branch from 88b3bd6 to 2060c9d Compare May 6, 2026 20:49
as some devices (especially those in GH runners) cannot be partitioned into sub-devices, we print that the device cannot be partitioned and discard the exception
@ndgrigorian ndgrigorian force-pushed the restructure-python-examples branch from 2060c9d to 23cf073 Compare May 26, 2026 15:40
Copy link
Copy Markdown
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 @ndgrigorian

Just a few minor comments below:

Comment thread examples/python/usm_operations.py Outdated
Comment thread examples/python/usm_operations.py
@ndgrigorian ndgrigorian force-pushed the restructure-python-examples branch from 186df70 to ec1a5ea Compare May 26, 2026 19:41
Copy link
Copy Markdown
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
Thanks @ndgrigorian

@ndgrigorian ndgrigorian merged commit 92fb34f into master May 26, 2026
84 checks passed
@ndgrigorian ndgrigorian deleted the restructure-python-examples branch May 26, 2026 20:39
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.

3 participants