Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_FBUnpackOnArrival.H File Reference

GPU FillBoundary and SumBoundary with GPU-aware MPI. Messages are unpacked as they arrive when at least amrex.fb.on_arrival_min_bytes are received per call, otherwise together after all have arrived. More...

Go to the source code of this file.

Detailed Description

GPU FillBoundary and SumBoundary with GPU-aware MPI. Messages are unpacked as they arrive when at least amrex.fb.on_arrival_min_bytes are received per call, otherwise together after all have arrived.

Everything here runs on the current GPU stream. The pack kernel relies on that to see what earlier kernels wrote into the FabArray. On return the stream is synchronized unless inside a Gpu::NoSyncRegion, where only work on the current stream may still be running. Code that packs or unpacks on another stream must first wait on the current stream and must not leave work on the other stream behind.