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

MueLu: Build error with experimental kokkos-kernels option on #1660

Closed
mhoemmen opened this issue Aug 30, 2017 · 11 comments
Closed

MueLu: Build error with experimental kokkos-kernels option on #1660

mhoemmen opened this issue Aug 30, 2017 · 11 comments

Comments

@mhoemmen
Copy link
Contributor

@trilinos/muelu @trilinos/xpetra

@DrBooom reports:

With these three CMake options turned on:

  -D KokkosKernels_ENABLE_Experimental:BOOL=ON \
  -D MueLu_ENABLE_Kokkos_Refactor=ON \
  -D Xpetra_ENABLE_Kokkos_Refactor=ON \

I get this error:

In file included from /p/home/cbluchi/Trilinos/packages/tpetra/core/ext/TpetraExt_MatrixMatrix.cpp(49):
/p/home/cbluchi/Trilinos/packages/tpetra/core/ext/TpetraExt_MatrixMatrix_def.hpp(62): catastrophic error: cannot open source file "KokkosKernels_SPGEMM.hpp"
  #include "KokkosKernels_SPGEMM.hpp"
                                     ^

I don't get this build error with the options disabled.

@crtrott
Copy link
Member

crtrott commented Aug 30, 2017

That is a tpetra issue not a Xpetra or MueLu issue, the include in the tpetra file needs to be fixed.

@jhux2
Copy link
Member

jhux2 commented Aug 30, 2017

Maybe related to this? kokkos/kokkos-kernels#53

@crtrott
Copy link
Member

crtrott commented Aug 30, 2017

Yeah the file was renamed to KokkosSparse_spgemm.hpp i believe , and apparently we didn't catch this include.

@crtrott
Copy link
Member

crtrott commented Aug 30, 2017

Also maybe this should now be enabled by default ...

@mhoemmen
Copy link
Contributor Author

it's a kokkos-kernels issue, since kokkos-kernels broke backwards compatibility. would have been nice if Trilinos had a nightly test for this though :)

@crtrott
Copy link
Member

crtrott commented Aug 30, 2017

Yeah but now it is a Tpetra issue, because it is what needs to change ;-), and yeah technically there are tests but apparently -D KokkosKernels_ENABLE_Experimental:BOOL=ON is not set by any of them.

@mndevec
Copy link
Contributor

mndevec commented Aug 31, 2017

Sorry, I was not aware the call was wrapped with experimental flags. My commit should fix this now, and I removed experimental flags.
It will compile as default now.

@mhoemmen
Copy link
Contributor Author

mhoemmen commented Sep 1, 2017

Thanks @mndevec and @crtrott !

@mndevec wrote:

It will compile as default now.

Does that mean that Trilinos uses your sparse matrix-matrix multiply by default now? Just checking :-) .

@mndevec
Copy link
Contributor

mndevec commented Sep 1, 2017

Yes, only when the execution space is openmp.

@aprokop
Copy link
Contributor

aprokop commented Sep 1, 2017

Can confirm @mndevec that that's what we getting in MueLu.

@mhoemmen
Copy link
Contributor Author

mhoemmen commented Sep 1, 2017

@mndevec Thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants