KokkosKernels: apply PR 2296 as patch (#49627)

Applies this fix to all affected versions (4.0.00:4.4.00).
Fixes issue #49622.

Signed-off-by: Brian Kelley <bmkelle@sandia.gov>
This commit is contained in:
brian-kelley 2025-03-20 20:13:00 -06:00 committed by GitHub
parent c79b6207e8
commit 070bfa1ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

View File

@ -250,6 +250,9 @@ class KokkosKernels(CMakePackage, CudaPackage):
variant("shared", default=True, description="Build shared libraries") variant("shared", default=True, description="Build shared libraries")
patch("pr_2296_430.patch", when="@4.3.00:4.4.00")
patch("pr_2296_400.patch", when="@4.0.00:4.2.01")
# sanity check # sanity check
sanity_check_is_file = [join_path("include", "KokkosKernels_config.h")] sanity_check_is_file = [join_path("include", "KokkosKernels_config.h")]
sanity_check_is_dir = ["include"] sanity_check_is_dir = ["include"]

View File

@ -0,0 +1,16 @@
diff --git a/sparse/src/KokkosSparse_spadd_handle.hpp b/sparse/src/KokkosSparse_spadd_handle.hpp
index 6d726e3da..01d96f551 100644
--- a/sparse/src/KokkosSparse_spadd_handle.hpp
+++ b/sparse/src/KokkosSparse_spadd_handle.hpp
@@ -76,10 +76,6 @@ class SPADDHandle {
*/
size_type get_c_nnz() { return this->result_nnz_size; }
- void set_sort_option(int option) { this->sort_option = option; }
-
- int get_sort_option() { return this->sort_option; }
-
/**
* \brief Default constructor.
*/

View File

@ -0,0 +1,16 @@
diff --git a/sparse/src/KokkosSparse_spadd_handle.hpp b/sparse/src/KokkosSparse_spadd_handle.hpp
index ea9594ca3..8d2830958 100644
--- a/sparse/src/KokkosSparse_spadd_handle.hpp
+++ b/sparse/src/KokkosSparse_spadd_handle.hpp
@@ -102,10 +102,6 @@ class SPADDHandle {
*/
size_type get_c_nnz() { return this->result_nnz_size; }
- void set_sort_option(int option) { this->sort_option = option; }
-
- int get_sort_option() { return this->sort_option; }
-
#ifdef KOKKOSKERNELS_ENABLE_TPL_CUSPARSE
SpaddCusparseData cusparseData;
#endif