MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / synchronizeTo

Method synchronizeTo

src/Initializer/MemoryManager.cpp:989–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989void seissol::initializer::MemoryManager::synchronizeTo(seissol::initializer::AllocationPlace place) {
990#ifdef ACL_DEVICE
991 if (place == seissol::initializer::AllocationPlace::Device) {
992 logInfo(MPI::mpi.rank()) << "Synchronizing data... (host->device)";
993 }
994 else {
995 logInfo(MPI::mpi.rank()) << "Synchronizing data... (device->host)";
996 }
997 const auto& defaultStream = device::DeviceInstance::getInstance().api->getDefaultStream();
998 m_ltsTree.synchronizeTo(place, defaultStream);
999 m_dynRupTree.synchronizeTo(place, defaultStream);
1000 m_boundaryTree.synchronizeTo(place, defaultStream);
1001 device::DeviceInstance::getInstance().api->syncDefaultStreamWithHost();
1002#endif
1003}

Callers 1

Calls 1

rankMethod · 0.80

Tested by

no test coverage detected