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

Want function to get ADIOS2 library version at run time #3630

Closed
eschnett opened this issue May 23, 2023 · 3 comments · Fixed by #3676
Closed

Want function to get ADIOS2 library version at run time #3630

eschnett opened this issue May 23, 2023 · 3 comments · Fixed by #3676

Comments

@eschnett
Copy link
Contributor

I would like to have a function (in the C API) that returns the ADIOS2 version number. This will allow the Julia wrapper to inquire the current version by calling the C API (or reading a global variable), and make run-time decisions based on this, e.g. whether certain functionality is available.

A C #define would not be good enough because these are not available in a shared library.

@pnorbert
Copy link
Contributor

Please see #3633 and comment

@ax3l
Copy link
Contributor

ax3l commented Jun 1, 2023

@pnorbert I would like the same function for C++ please (if there is none already). For the same reasons, if there is a runtime function to query which opt-in functionality is available (SST, BP5, Compressors, MPI, etc.) that would be awesome, too.

In openPMD-api, we have something similar:
https://github.com/openPMD/openPMD-api/blob/0.15.1/src/version.cpp
https://github.com/openPMD/openPMD-api/blob/0.15.1/src/config.cpp#L31-L65

And in Python we return a dictionary with the compiled-in functionality:
https://github.com/openPMD/openPMD-api/blob/0.15.1/src/binding/python/openPMD.cpp#L111-L117

@pnorbert
Copy link
Contributor

pnorbert commented Jun 5, 2023

Note to myself: Maybe also add a function to get the supported features that are turned on in the particular adios library.

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

Successfully merging a pull request may close this issue.

3 participants