Algorithms: fill_random assumes dimensions fit in unsigned int #389
Labels
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone
The fill_random_functor_* functors (which implement fill_random) all assume that all dimensions of the input View fit in
unsigned int
. This blocks trilinos/Trilinos#454. In general, it prevents use of Views of dimension > 4B, which could block a common use case of #241 among others.Proposed fix: Replace all use of
unsigned int
withViewType::size_type
.The text was updated successfully, but these errors were encountered: