Skip to content

Restructure Python examples#2292

Open
ndgrigorian wants to merge 5 commits intomasterfrom
restructure-python-examples
Open

Restructure Python examples#2292
ndgrigorian wants to merge 5 commits intomasterfrom
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

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 23, 2026

Coverage Status

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

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