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

implement dpnp.fft.fft and dpnp.fft.ifft using pybind11 extension #1879

Merged
merged 32 commits into from
Jul 13, 2024

Conversation

vtavana
Copy link
Collaborator

@vtavana vtavana commented Jun 12, 2024

In this PR, dpnp.fft.fft and dpnp.fft.ifft are implemented using pybind11 extension to call OneMKL DFT routines.

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

@vtavana vtavana self-assigned this Jun 12, 2024
Copy link
Contributor

github-actions bot commented Jun 12, 2024

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

@vtavana vtavana marked this pull request as ready for review June 12, 2024 20:05
dpnp/backend/extensions/fft/c2c.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/c2c.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/c2c.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/c2c.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/c2c.hpp Outdated Show resolved Hide resolved
dpnp/fft/dpnp_iface_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_iface_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
@IntelPython IntelPython deleted a comment from antonwolfy Jun 21, 2024
dpnp/backend/extensions/fft/common.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/common.hpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/fft_py.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/in_place.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/out_of_place.cpp Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
tests/test_usm_type.py Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/out_of_place.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/fft/out_of_place.cpp Outdated Show resolved Hide resolved
dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_iface_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
dpnp/fft/dpnp_utils_fft.py Outdated Show resolved Hide resolved
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.

I don't have more comments, Thank you @vtavana, it was a lot of work done to add FFT extension to dpnp. It's great!

@vtavana vtavana merged commit 100094a into master Jul 13, 2024
38 of 45 checks passed
@vtavana vtavana deleted the impl_fft branch July 13, 2024 03:52
github-actions bot added a commit that referenced this pull request Jul 13, 2024
…#1879)

* implement fft and ifft using pybind11 extension

* fixing minor issues

* address comments

* link to dpnp doc for FFT background info

* add TODO

* update backend structure

* update CMakefile

* update tests

* add out keyword and fix an issue with negative stride

* fix sphinx spelling issues

* update for mkl-2024.2

* implement in-place fft

* update to reuse dpctl function

* fix an issue for out keyword given as usm_ndarray

* fix a test

* add TODO

* extend descriptor template

mkl_dft::domain is added to descriptor template for future
impelemntation of REAL domain

* add incorrectly removed header

* address comments

* fix empty array test

* implement async memory

* address comments

* use dpnp_array

* update a test

* fix pre-commit

* consistency with stock NumPy for coverage report

---------

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com> 100094a
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.

None yet

2 participants