openPMD: avoid managed memory #2097
Labels
backend: cuda
Specific to CUDA execution (GPUs)
backend: hip
Specific to ROCm execution (GPUs)
backend: sycl
Specific to DPC++/SYCL execution (CPUs/GPUs)
component: openPMD
openPMD I/O
Performance optimization
workaround
Make sure that openPMD output can run with
amrex.the_arena_is_managed=0
#2009We need to explicitly copy D2H first, e.g. here
fields:
WarpX/Source/Diagnostics/WarpXOpenPMD.cpp
Lines 1053 to 1055 in 495d052
particles:
WarpX/Source/Diagnostics/WarpXOpenPMD.cpp
Line 596 in 495d052
This is how plotfiles do this:
fields: https://github.com/AMReX-Codes/amrex/blob/a0790de872d6b18b563712b9f1b18323b8d00072/Src/Base/AMReX_FArrayBox.cpp#L604
particles: https://github.com/AMReX-Codes/amrex/blob/6e27136f76280e565d30ff654031d1b1ac683171/Src/Particle/AMReX_ParticleIO.H#L608
The text was updated successfully, but these errors were encountered: