-
Notifications
You must be signed in to change notification settings - Fork 51
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
Installation issues with support for Python API #279
Comments
Dear @ritiek, thank you a lot for trying out the API and your detailed report!
MPI support for openPMD-api means: MPI parallel backend support for clusters. For example, parallel HDF5 or MPI aggregated ADIOS1 writing. MPI-enabled libraries should always be build from source on clusters, for various reasons (stability, hardware support such as infiniband, performance).
Nope, adios is just yet another backend that can write serial and MPI parallel files :-) You want ADIOS if you write on large clusters with more than ~1'000 MPI ranks (for example, see: https://arxiv.org/abs/1706.00522).
yay, excellent! :)
Don't worry, these are exactly the reports we like :-) For further information and background, have you seen our README.md and manual yet? :-) |
@ritiek just for curiosity, can you try to compile the latest |
I just tried to build it from source and it seems to build fine now! I'll also try again with spack soon and let you know how it goes. |
Jippey, thank you! |
Spack installs python 3.6.5 too!
I should be the one to thank you. So, thank you! :D |
Hi @ritiek, the latest release 0.5.0a fixes a couple of python related issues, mainly attribute writing and proper float handling in datasets. Make sure to update in case you got any problems trying it! :) |
That's great to know @ax3l! Though, there hasn't been much stuff going on around OpenPMD and HDF5 datasets in PlasmaPy at the moment but we'll keep the newer OpenPMD-api version in mind for the future. :) |
Alright, sounds good! Thanks for the feedback :) |
@ax3l I am really glad you're taking much efforts to have people adopt these standards which I hope people really do!
Yep, it did build smoothly with no problems when I passed no arguments but there was some trouble when passing
-DopenPMD_USE_PYTHON=ON
and-DopenPMD_USE_HDF5
to cmake.It's been a while since I tried to build but AFAIK there was some error regarding
MPI
andHDF5
which I think building HDF5 and h5py with MPI support fixed it. I think it would be very nice if it were point to relevant docs for building with MPI support. (Also, it isn't immediately clear what MPI support does, it might be good to have some docs what additional features it brings to OpenPMD-API :)That error regarding
HDF5
andMPI
went away but then now I face this one.I tried looking up and I think installing ADIOS might fix it but it was mentioned in under optional I/O dependencies in the README (and/or it could be that I have pybind installed incorrectly) but I didn't really try installing it yet. I guess I'll tinker a bit more and might raise an issue in OpenPMD-API repo with feedback on what could have been better in my perspective. :)
Also, I tried installing it with spack
but for some reason spack always ended up installing Python 2.7.15 even when I created a symbolic link in
/usr/bin/python
which pointed to my Python 3.6 binary (I wanted it build OpenPMD-API for Python 3.6).Initially it did say it was running Python 3.6 with
spack python
but that changed when I didspack install openpmd-api +python
. I am not really sure whether this is something to do with OpenPMD-API or spack itself. I haven't used spack before this so I can't say how it works. Do you guys know of a way to specify the Python version?And conda installation really did go smooth, no errors in da way. :D
That said, I am myself very new to HDF5 and OpenPMD in general, so it may be just something to do with my lack of clear understanding at the moment. :/
This report is just a copy-paste from PlasmaPy/PlasmaPy-PLEPs#13 (comment).
The text was updated successfully, but these errors were encountered: