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

[Sparse BLAS] remove deprecation warning when using oneMKL 2024.1 with sparse::trsv() on x86 CPU and Intel GPU backends #468

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

spencerpatty
Copy link

@spencerpatty spencerpatty commented Apr 4, 2024

Description

oneMKL 2024.1 deprecated sparse::trsv() without an alpha scaling factor and introduced a new sparse::trsv() with alpha. We update trsv backend calls to use the new one from oneMKL 2024.1 with constant fixed alpha == 1 to avoid the deprecation warnings.

Checklist

All Submissions

  • Do all unit tests pass locally? Attach a log.
  • Have you formatted the code using clang-format?

Bug fixes

  • Have you added relevant regression tests? (N/A)
  • Have you included information on how to reproduce the issue (either in a
    GitHub issue or in this PR)? (N/A)

Copy link
Contributor

@Rbiessy Rbiessy left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I am wondering for how long do we need to support previous MKL releases?
Previous releases are not tested AFAIK so I am not sure it is worth complexifying the code with macros.

@spencerpatty
Copy link
Author

Thanks for the PR. I am wondering for how long do we need to support previous MKL releases? Previous releases are not tested AFAIK so I am not sure it is worth complexifying the code with macros.

To me, it makes sense to support the latest MKL minor release, but also the latest MKL Major release as well, but seeing as we always use the latest compiler, maybe it also just makes sense to support the latest MKL release and not distinguish between minor and major releases ? I also agree that having macros to complexify the code is not so good, luckily here it is a simple change, but it could be much worse ... If we agree to not worry about minor/major, I can quickly just drop the else part of this fix.

@Rbiessy
Copy link
Contributor

Rbiessy commented Apr 5, 2024

I would avoid the macro in this case. They don't seem to be used in the project so far.

@mmeterel
Copy link
Contributor

mmeterel commented Apr 5, 2024

Thanks for the PR. I am wondering for how long do we need to support previous MKL releases? Previous releases are not tested AFAIK so I am not sure it is worth complexifying the code with macros.

To me, it makes sense to support the latest MKL minor release, but also the latest MKL Major release as well, but seeing as we always use the latest compiler, maybe it also just makes sense to support the latest MKL release and not distinguish between minor and major releases ? I also agree that having macros to complexify the code is not so good, luckily here it is a simple change, but it could be much worse ... If we agree to not worry about minor/major, I can quickly just drop the else part of this fix.

Typically, we claim support for only latest oneMKL product - which is in the latest base tool kit (not distinguished between minor/major releases).

Co-authored-by: Romain Biessy <romain.biessy@codeplay.com>
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

3 participants