MueLu: error building RefMaxwell on CUDA when KokkosRefactor=ON
Created by: aprokop
@trilinos/muelu @cgcgcg
Expectations
Muelu builds using CUDA.
Current Behavior
The build fails using CUDA 8.0 with the following errors:
/home/xap/code/trilinos/packages/muelu/adapters/xpetra/MueLu_RefMaxwell_def.hpp(652): error: device code does not support exception handling
/home/xap/code/trilinos/packages/muelu/adapters/xpetra/MueLu_RefMaxwell_def.hpp(676): error: device code does not support exception handling
The code in question is obviously off as it does
TEUCHOS_ASSERT_EQUALITY(P11colind(m),jNew);
which could throw which is not possible on device.
Removing those lines makes the code compile, but a better solution is probably needed.