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

Fix FFT negative strides case #2202

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

AlexanderKalistratov
Copy link
Collaborator

FFT implementation validate arrays for supported strides/dtypes and if needed make a copy and cast (_copy_array).
Old implementation didn't validate for dtype in case of negative strides resulting in incorrect type selection in _commit_descriptor and failures on systems without float64 support.

Copy link
Contributor

github-actions bot commented Nov 27, 2024

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

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 @AlexanderKalistratov. I have only a minor comment.

dpnp/tests/test_fft.py Outdated Show resolved Hide resolved
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
@antonwolfy antonwolfy merged commit 88911fb into master Nov 27, 2024
48 checks passed
@antonwolfy antonwolfy deleted the fft_with_negative_stride_fix branch November 27, 2024 18:05
github-actions bot added a commit that referenced this pull request Nov 27, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> 88911fb
vtavana pushed a commit that referenced this pull request Dec 2, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
vtavana pushed a commit that referenced this pull request Dec 2, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
antonwolfy added a commit that referenced this pull request Dec 5, 2024
* Fix issue with negative strides

* Apply suggestions from code review

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
@antonwolfy antonwolfy mentioned this pull request Dec 5, 2024
6 tasks
github-actions bot added a commit that referenced this pull request Dec 5, 2024
antonwolfy added a commit that referenced this pull request Dec 5, 2024
This PR backports of #2202 from development branch to
`maintenance/0.16.x`.
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