Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate support for writing to ADIOS1 via the openPMD plugin #3395

Conversation

franzpoeschel
Copy link
Contributor

See here for a reasoning.

@@ -140,6 +140,17 @@ namespace openPMD
log< picLog::INPUT_OUTPUT >( "openPMD: open file: %1%" ) % fullName;
openPMDSeries = std::unique_ptr<::openPMD::Series >(
new ::openPMD::Series( fullName, at, communicator, jsonConfig ) );
if( openPMDSeries->backend() == "MPI_ADIOS1" )
{
throw std::runtime_error(R"END(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does R"END mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's C++11 syntax for multiline strings, see item 6 here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@franzpoeschel IS it possible to check in CMake that OpenPMD-api is at least build with ADIOS2 and/or HDF5?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that should be doable. Will get to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recent commit does that. I left the runtime check in there.

@sbastrakov sbastrakov added this to the 0.6.0 / 1.0.0: Next Stable milestone Oct 19, 2020
@sbastrakov sbastrakov added the component: plugin in PIConGPU plugin label Oct 19, 2020
@psychocoderHPC psychocoderHPC merged commit 8f6c181 into ComputationalRadiationPhysics:dev Oct 21, 2020
@sbastrakov
Copy link
Member

@franzpoeschel we just discussed in the office that we should now disable reading ADIOS1 checkpoints as well, so to completely remove support of ADIOS1. However it seems from the code, that the exception thrown with this PRs change already affects reading, not just writing? (I don't have an old checkpoint to test it readily).

@franzpoeschel
Copy link
Contributor Author

Yep, that one should catch both reading and writing @sbastrakov. I think the fastest way to test would be by creating an ADIOS1 checkpoint. Quickly commenting out that check should do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: plugin in PIConGPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants