| 26 | } |
| 27 | |
| 28 | void verify_host_values (TVec const & v, std::vector<int> const & expected) |
| 29 | { |
| 30 | auto const & host = v.host_const(); |
| 31 | AMREX_ALWAYS_ASSERT(host.size() == expected.size()); |
| 32 | for (std::size_t i = 0; i < expected.size(); ++i) { |
| 33 | AMREX_ALWAYS_ASSERT(host[i] == expected[i]); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | void test_copy_without_amrex_session (TVec const & src, std::vector<int> const & expected) |
| 38 | { |