| 987 | } |
| 988 | |
| 989 | void 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 | } |
no test coverage detected