10 #ifndef KOKKOS_VIEW_UTILS_DEF_HPP
11 #define KOKKOS_VIEW_UTILS_DEF_HPP
23 template <
class OutputView,
typename Enabled>
24 struct StokhosViewFill
32 KOKKOS_INLINE_FUNCTION
35 const size_t n1 =
output.extent(1);
36 const size_t n2 =
output.extent(2);
37 const size_t n3 =
output.extent(3);
38 const size_t n4 =
output.extent(4);
39 const size_t n5 =
output.extent(5);
40 const size_t n6 =
output.extent(6);
41 const size_t n7 =
output.extent(7);
43 for (
size_t i1 = 0 ; i1 < n1 ; ++i1 ) {
44 for (
size_t i2 = 0 ; i2 < n2 ; ++i2 ) {
45 for (
size_t i3 = 0 ; i3 < n3 ; ++i3 ) {
46 for (
size_t i4 = 0 ; i4 < n4 ; ++i4 ) {
47 for (
size_t i5 = 0 ; i5 < n5 ; ++i5 ) {
48 for (
size_t i6 = 0 ; i6 < n6 ; ++i6 ) {
49 for (
size_t i7 = 0 ; i7 < n7 ; ++i7 ) {
57 const size_t n0 =
output.extent(0);
58 Kokkos::RangePolicy<execution_space> policy( 0, n0 );
59 Kokkos::parallel_for( policy, *
this );
67 #endif // KOKKOS_VIEW_UTILS_DEF_HPP
Kokkos::DefaultExecutionSpace execution_space
KOKKOS_INLINE_FUNCTION void operator()(const size_t i0) const
OutputView::const_value_type const_value_type
OutputView::execution_space execution_space
StokhosViewFill(const OutputView &arg_out, const_value_type &arg_in)