kokkos-kernels icon indicating copy to clipboard operation
kokkos-kernels copied to clipboard

error: no member named 'sort_option' in 'SPADDHandle'

Open LutzGross opened this issue 1 year ago • 4 comments

compilation of Trilinos 16 (also 15) fails on MacOS with

packages/kokkos-kernels/sparse/src/KokkosSparse_spadd_handle.hpp:113:44: error: no member named 'sort_option' in 'SPADDHandle<lno_row_view_t_, lno_nnz_view_t_, scalar_nnz_view_t_, ExecutionSpace, MemorySpace>'

This under homebrew [email protected] , [email protected] and

Apple clang version 16.0.0 (clang-1600.0.26.3) Target: arm64-apple-darwin23.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Installation with mk_trilinos.sh.gz

LutzGross avatar Sep 26 '24 21:09 LutzGross

I get this error as well. I see it with Trilinos 15.1.1 as well. I can try to build with Spack for 15.1.1 or 16.0.0 and see this error even when it chooses a different Kokkos version for each Trilinos version.

jrood-nrel avatar Oct 16 '24 03:10 jrood-nrel

https://github.com/kokkos/kokkos-kernels/pull/2296 solves it. The older versions of kokkos-kernels need to be patched to solve this.

jrood-nrel avatar Oct 16 '24 04:10 jrood-nrel

We typically do not patch old version of the code we simply encourage folks to get newer versions with fixes. This would not help with Trilinos unless you build against an external version of Kokkos Kernels. Trilinos could add a patch in Spack for the version affected by this issue?

lucbv avatar Oct 16 '24 13:10 lucbv

Yes that is what I am doing.

jrood-nrel avatar Oct 16 '24 16:10 jrood-nrel

Closing this since it's been fixed in master for several releases.

brian-kelley avatar Mar 20 '25 20:03 brian-kelley