| 738 | } |
| 739 | |
| 740 | void |
| 741 | FABio_ascii::skip (std::istream& is, |
| 742 | FArrayBox& f) const |
| 743 | { |
| 744 | #ifdef AMREX_USE_GPU |
| 745 | if (f.arena()->isManaged() || f.arena()->isDevice()) { |
| 746 | FArrayBox hostfab(f.box(), f.nComp(), The_Pinned_Arena()); |
| 747 | FABio_ascii::read(is, hostfab); |
| 748 | Gpu::htod_memcpy_async(f.dataPtr(), hostfab.dataPtr(), f.size()*sizeof(Real)); |
| 749 | Gpu::streamSynchronize(); |
| 750 | } else |
| 751 | #endif |
| 752 | { |
| 753 | FABio_ascii::read(is, f); |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | void |
| 758 | FABio_ascii::skip (std::istream& /*is*/, |
no test coverage detected