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

Writable flag views followup #1529

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Conversation

oleksandr-pavlyk
Copy link
Contributor

This is a follow-up to gh-1527.

It changes usm_ndarray._set_writable_flag implementation to use _copy_writable utility function.

It also adds tests to verify that read-only array passed to out keyword raises ValueError.

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

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the writable-flag-views-followup branch from a3dbebd to 4e558f3 Compare February 6, 2024 04:08
Copy link

github-actions bot commented Feb 6, 2024

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

@coveralls
Copy link
Collaborator

coveralls commented Feb 6, 2024

Coverage Status

coverage: 91.142% (+0.1%) from 91.037%
when pulling 4e558f3 on writable-flag-views-followup
into 194dee2 on master.

Copy link

github-actions bot commented Feb 6, 2024

Array API standard conformance tests for dpctl=0.15.1dev3=py310h15de555_87 ran successfully.
Passed: 908
Failed: 1
Skipped: 86

Copy link
Collaborator

@ndgrigorian ndgrigorian left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

github-actions bot commented Feb 6, 2024

Array API standard conformance tests for dpctl=0.15.1dev3=py310h15de555_81 ran successfully.
Passed: 908
Failed: 1
Skipped: 86

@oleksandr-pavlyk oleksandr-pavlyk merged commit c4069a4 into master Feb 6, 2024
@oleksandr-pavlyk oleksandr-pavlyk deleted the writable-flag-views-followup branch February 6, 2024 12:49
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