-
Notifications
You must be signed in to change notification settings - Fork 94
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 deprecated oneMKL call #1718
Conversation
ah, you are also working on that. |
I am preparing the docker image such that we can check the compilation at least |
@yhmtsai feel free to push if you already have a fix for set_csr_data. |
02cd5de
to
736b9b3
Compare
736b9b3
to
1d2cb4e
Compare
format! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which version of SYCL do we support now ? Everything starting from 2023.1 ? I think we should have additional jobs for one 2024 and also one 2025 version.
@pratikvn We currently test 2023.1 and 2024.1 (this is the |
fd02afb
to
59f7a91
Compare
123a9e3
to
7e6c81c
Compare
59f7a91
to
ee6af20
Compare
…are removed in oneapi-2025.0.0
Co-authored-by: Marcel Koch <marcel.koch@kit.edu>
Somehow the 'correct' version of the MKL calls lead to a segfault if version < 2024, even though they already deprecated the old call in v2023...
ee6af20
to
b0f81df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I did partial changes in this code, I do not give approval from my side.
I only have one question for MKL_VERSION dispatch, others look good to me
#if INTEL_MKL_VERSION >= 20240000 | ||
*exec->get_queue(), | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the documentation, the old one should deprecated in the 2023.0.
Doesn't it provide the new one even in 2023.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but I think the new one doesn't work in 2023.1. At least running on the PVC@FTP it always segfaulted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thanks for clarifying it
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1718 +/- ##
========================================
Coverage 90.10% 90.10%
========================================
Files 782 782
Lines 63474 63475 +1
========================================
+ Hits 57192 57193 +1
Misses 6282 6282 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
This PR uses the new overload of release_matrix_handle and set_csr_data instead of the deprecated one, see https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2025-0/oneapi-mkl-sparse-release-matrix-handle.html and https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2025-0/oneapi-mkl-sparse-set-csr-data.html. Also, the member functions for shuffle in subgroup and is_host() are removed in the oneapi 2025.0.0, and replaced with the group algorithm (which is also supported by 2023.1). Related PR: ginkgo-project#1718
This PR uses the new overload of
release_matrix_handle
andset_csr_data
instead of the deprecated one, see https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2025-0/oneapi-mkl-sparse-release-matrix-handle.html and https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2025-0/oneapi-mkl-sparse-set-csr-data.htmlAlso, the member functions for shuffle in subgroup and
is_host()
are removed in the oneapi 2025.0.0Use the group algorithm and remove
is_host()
in this pr.The group algorithm should still be supported from 2023.1
Fixes #1717
Todo: