30 auto data = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), view);
31 std::ofstream fout(filename);
34 fout <<
data(i) << std::endl;
44 auto data = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), view);
45 std::ofstream fout(filename);
50 fout <<
data(i, j) <<
" ";
All fundamental data containers used in MRMD.
Utility functions used throughout the library.
void dumpView(const std::string &filename, const ScalarView &view)
Dump a scalar view to a text file.
Definition dumpView.hpp:28
Top-level namespace of MRMD.
KOKKOS_INLINE_FUNCTION constexpr idx_t idx_c(const T &val)
Definition datatypes.hpp:93
int64_t idx_t
Definition datatypes.hpp:91
Kokkos::View< real_t ** > MultiView
Definition datatypes.hpp:161
Kokkos::View< real_t * > ScalarView
Definition datatypes.hpp:159