Skip to content

Fix issue gh-2311 #2314

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

Merged
merged 6 commits into from
Feb 17, 2025
Merged

Fix issue gh-2311 #2314

merged 6 commits into from
Feb 17, 2025

Conversation

vlad-perevezentsev
Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev commented Feb 14, 2025

This PR suggests a solving #2311

When the input array is (n, m) or (batch_size, n, m) where m=1 geqrf/geqrf_batch call returns F-contig result array and dpnp.empty_like() is used to allocate q allocates F-contig array and this raises ValueError exception in orgqr and ungqr functions.

Added q allocation always C-contig and updated tests

  • 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?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

github-actions bot commented Feb 14, 2025

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@coveralls
Copy link
Collaborator

coveralls commented Feb 14, 2025

Coverage Status

coverage: 71.737%. remained the same
when pulling 55d2679 on fix_qr_issue
into 0d5ffad on master.

Copy link
Contributor

github-actions bot commented Feb 14, 2025

Array API standard conformance tests for dpnp=0.17.0dev6=py312he4f9c94_22 ran successfully.
Passed: 992
Failed: 0
Skipped: 22

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Thank you @vlad-perevezentsev, LGTM!

@vlad-perevezentsev vlad-perevezentsev merged commit 89cb658 into master Feb 17, 2025
61 of 67 checks passed
@vlad-perevezentsev vlad-perevezentsev deleted the fix_qr_issue branch February 17, 2025 18:16
github-actions bot added a commit that referenced this pull request Feb 17, 2025
This PR suggests a solving #2311

When the input array is `(n, m)` or `(batch_size, n, m)` where m=1
`geqrf`/`geqrf_batch` call returns F-contig result array and
`dpnp.empty_like()` is used to allocate `q` allocates F-contig array and
this raises `ValueError` exception in `orgqr` and `ungqr` functions.

Added `q` allocation always C-contig and updated tests 89cb658
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.

dpnp.linalg.qr raises ValueError exception due to non-contagious input array passed to the LAPACK extension
3 participants