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

fix: nested namespace holding kk mkl implementation

Open maartenarnst opened this issue 2 years ago • 3 comments

This PR fixes a compilation error when compiling Trilinos/kokkos-kernels when both mkl and rocsparse are enabled.

Compilation errors look like this:

/Trilinos-sources/packages/kokkos-kernels/sparse/tpls/KokkosSparse_spmv_bsrmatrix_tpl_spec_decl.hpp:35:7: error: no member named 'mode_kk_to_mkl' in namespace 'KokkosSparse::Experimental::Impl::KokkosSparse::Impl'; did you mean '::KokkosSparse::Impl::mode_kk_to_mkl'?

The fix is to add a :: so as to look for KokkosSparse::Impl explicitly in the global namespace.

maartenarnst avatar Feb 07 '24 07:02 maartenarnst

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging NO INSPECTION HAS BEEN PERFORMED ON THIS PULL REQUEST! - This PR must be inspected by setting label 'AT: PRE-TEST INSPECTED'.

kokkos-devops-admin avatar Feb 07 '24 09:02 kokkos-devops-admin

@maartenarnst sorry for the slow comment here... why not use a non qualified name instead of using this fully qualified one since we are in the same namespace? I think that would look cleaner...

lucbv avatar Feb 15 '24 23:02 lucbv

I opened PR #2134 that fixes the issue in a way that I find cleaner, let me know if you have an issues closing this?

lucbv avatar Mar 06 '24 18:03 lucbv

@maartenarnst can you see if your issues are resolved with PR #2134 being merged now? I will close this and maybe create an issue instead to track the problem further if there is still a build problem on your end.

lucbv avatar Mar 13 '24 19:03 lucbv