-
Notifications
You must be signed in to change notification settings - Fork 612
Description
@trilinos/stokhos
@etphipp
@crtrott
We see compilation errors when we compile Trilinos with Stokhos with Stokhos_ENABLE_Ensemble_Reduction=ON.
The compilation errors are related to the file packages/stokhos/src/sacado/kokkkos/vector/linalg/Kokkos_Blas1_MP_Vector.hpp. There are a number of lines in this file that look like
typename Kokkos::FlatArrayType<XVector>::type x_flat = x;
and those lines now fail after the update to Kokkos 5.0.
The PR:
fixed many such occurrences in other files. A hypothesis is that the occurrences in this blas1 file were missed because that PR was compiled and tested with Stokhos_ENABLE_Ensemble_Reduction=OFF.
It appears that certain occurrences of this "flattening" in this blas1 file can be fixed along the lines of what was done in #14700. However, this blas1 file contains functions that perform blas1 operations column-wise on multi vectors. It seems that these functions cannot be handled with the helper function reinterpret_as_unmanaged_scalar_flat_view from #14700. It seems that we would need a new helper function to flatten columnwise.
As an alternative to making changes, a solution could also consist in deprecating the Stokhos_ENABLE_Ensemble_Reduction=ON code path.