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

Extend gesv_impl/gesv_batch_impl for work with oneMKL Interfaces #2001

Merged
merged 15 commits into from
Aug 21, 2024

Conversation

vlad-perevezentsev
Copy link
Collaborator

This PR suggests extending the implementation of gesv_impl and gesv_batch_impl for dpnp.linalg,solve to work with OneMKL Interfaces because oneapi:mkl::lapack:gesv is missing there and will only be added in version 2025.1, adding logic to call gesv/gesv_batch via getrf/getrs, getrf_batch/getrs_batch

  • 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 Aug 19, 2024

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

dpnp/backend/extensions/lapack/gesv.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv.cpp Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv.cpp Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv_batch.cpp Outdated Show resolved Hide resolved
dpnp/backend/extensions/lapack/gesv_batch.cpp Show resolved Hide resolved
dpnp/backend/extensions/lapack/getrs.cpp 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.

No more comments from me. Thank you @vlad-perevezentsev

@vlad-perevezentsev vlad-perevezentsev merged commit f22a4cb into master Aug 21, 2024
39 of 46 checks passed
@vlad-perevezentsev vlad-perevezentsev deleted the impl_solve_nvidia branch August 21, 2024 06:26
github-actions bot added a commit that referenced this pull request Aug 21, 2024
…2001)

* Implement batch solve via getrf_batch and getrs_batch

* Pass sycl::queue by reference for getrs/getrs_batch

* Extend gesv_impl to use onemkl interfaces

* Reduce code duplication in gesv_impl

* Extend gesv_batch_impl to use onemkl interfaces

* Remove getrs_batch implementation

* Pass correct batch_strides to gesv_batch_fn

* Reduce dublicate code for gesv_impl

* Replace maybe_unused to if defined/else

* Expand comments for trans parameter

---------

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