MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / skip

Method skip

Src/Base/AMReX_FArrayBox.cpp:740–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void
741FABio_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
757void
758FABio_ascii::skip (std::istream& /*is*/,

Callers 2

readFromMethod · 0.80
skipFABMethod · 0.80

Calls 13

The_Pinned_ArenaFunction · 0.85
htod_memcpy_asyncFunction · 0.85
streamSynchronizeFunction · 0.85
numBytesMethod · 0.80
isManagedMethod · 0.45
arenaMethod · 0.45
isDeviceMethod · 0.45
boxMethod · 0.45
nCompMethod · 0.45
dataPtrMethod · 0.45
sizeMethod · 0.45
numPtsMethod · 0.45

Tested by

no test coverage detected