Immediate flush mode - #1846
Conversation
53bdf60 to
9c02a26
Compare
| auto init_directly = [this, &comm..., &filepath]( | ||
| std::unique_ptr<ParsedInput> parsed_input, | ||
| json::TracingJSON tracing_json) { | ||
| json::TracingJSON tracing_json, |
Check notice
Code scanning / CodeQL
Large object passed by value Note
| else | ||
| { | ||
| auto read_again = E_x_read.loadChunk<int>({0, 0}, {mpi_size, 4}); | ||
| // REQUIRE_THROWS(read.flush()); |
Check notice
Code scanning / CodeQL
Commented-out code Note test
3b5c07f to
c725c7b
Compare
84d0f30 to
6e9c239
Compare
| std::move(ls_cfg), | ||
| /*flush_immediately=*/false); | ||
| } | ||
| // storeChunk(std::move(data), std::move(o), std::move(e)); |
Check notice
Code scanning / CodeQL
Commented-out code Note
af38436 to
822c03f
Compare
33b4186 to
7b99854
Compare
| template <typename T> | ||
| void RecordComponent::loadChunk(std::shared_ptr<T> data, Offset o, Extent e) | ||
| void RecordComponent::loadChunk_impl( | ||
| std::shared_ptr<T> const &data, internal::LoadStoreConfigWithBuffer cfg) |
Check notice
Code scanning / CodeQL
Large object passed by value Note
7b99854 to
48a7af8
Compare
2f456f4 to
c0475c4
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
d11d683 to
588b813
Compare
| std::static_pointer_cast<T>(std::move(ptr)), | ||
| std::move(offset), | ||
| std::move(extent)); | ||
| // static_assert(!std::is_same_v<T_with_extent, std::string>, "EVIL"); |
Check notice
Code scanning / CodeQL
Commented-out code Note
| #endif | ||
| } | ||
|
|
||
| TEST_CASE("future_test", "[auxiliary]") |
Check notice
Code scanning / CodeQL
Unused static function Note test
Flush immediately upon
storeChunk()/loadChunk(), no flushing neededTODO:
Diff until then: https://github.com/franzpoeschel/openPMD-api/compare/adios2-memory-selection...franzpoeschel:openPMD-api:synchronous-flush?expand=1