You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all setVal calls acting on FArrayBox's are performed on the host. In profiling of code running on the GPU, it can be seen that this can result in considerable copying of data to/from the host and device, and means that this operation can take a non-negligible amount of time (considering all it's doing is filling arrays with zeros).
Such calls should be replaced e.g. with an AMREX_PARALLEL_FOR, as was done here AMReX-Astro/Castro@93b7b6f
The text was updated successfully, but these errors were encountered:
Currently, all
setVal
calls acting onFArrayBox
's are performed on the host. In profiling of code running on the GPU, it can be seen that this can result in considerable copying of data to/from the host and device, and means that this operation can take a non-negligible amount of time (considering all it's doing is filling arrays with zeros).Such calls should be replaced e.g. with an
AMREX_PARALLEL_FOR
, as was done here AMReX-Astro/Castro@93b7b6fThe text was updated successfully, but these errors were encountered: