Skip to content

Conversation

vtavana
Copy link
Contributor

@vtavana vtavana commented Sep 17, 2024

In this PR, implementation of dpnp.kron is updated to get rid of unnecessary copy for non-contiguous arrays. There is no need to make input arrays contiguous before performing the calculations. In addition, the final result would be c_contiguous regardless of the status in the middle steps.

  • 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 Sep 17, 2024
Copy link
Contributor

github-actions bot commented Sep 17, 2024

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

@vtavana vtavana changed the title Improve implementation of dpnp.kron to avoid unnecessary copy Improve implementation of dpnp.kron to avoid unnecessary copy for non-contiguous arrays Sep 17, 2024
@vtavana vtavana marked this pull request as ready for review September 17, 2024 19:37
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.

Great improvement! Thank you @vtavana

@vtavana vtavana merged commit 40e4052 into master Sep 19, 2024
39 of 46 checks passed
@vtavana vtavana deleted the update_kron branch September 19, 2024 03:21
vtavana added a commit that referenced this pull request Sep 19, 2024
…on-contiguous arrays (#2059)

* remove continuity check in dpnp.kron

* add additional assert check

* update CHANGELOG.md
@vtavana vtavana mentioned this pull request Sep 19, 2024
6 tasks
github-actions bot added a commit that referenced this pull request Sep 19, 2024
…on-contiguous arrays (#2059)

* remove continuity check in dpnp.kron

* add additional assert check

* update CHANGELOG.md 40e4052
github-actions bot added a commit that referenced this pull request Sep 19, 2024
antonwolfy pushed a commit that referenced this pull request Sep 19, 2024
…on-contiguous arrays (#2059) (#2064)

* remove continuity check in dpnp.kron

* add additional assert check

* update CHANGELOG.md
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