File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
include/picongpu/plugins/openPMD/writer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,10 @@ namespace picongpu
159159 {
160160 // accumulateWrittenBytes += 0;
161161
162- // Since Span-based storeChunk needs to interact with the openPMD backend (potentially opening it),
163- // this cannot be skipped in parallel setups
162+ # if !OPENPMDAPI_VERSION_GE(0, 17, 0)
163+ // Workaround for this bug: https://github.com/openPMD/openPMD-api/pull/1794
164+ // In the affected versions of the openPMD-api, Span-based storeChunk must be
165+ // treated as an MPI-collective call.
164166 for (uint32_t d = 0 ; d < components; d++)
165167 {
166168 ::openPMD::RecordComponent recordComponent
@@ -170,6 +172,7 @@ namespace picongpu
170172 ::openPMD::Offset{globalOffset},
171173 ::openPMD::Extent{elements});
172174 }
175+ # endif
173176 return ;
174177 }
175178
You can’t perform that action at this time.
0 commit comments