-
Notifications
You must be signed in to change notification settings - Fork 126
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
Python bindings - Bug sending 1 dimensional arrays #3503
Comments
Hmm. I'll see if I can reproduce. Should be able to switch to SST in this scenario for comparison and maybe get some more info as well. |
OK, tried with the python 3.10.8 on my laptop and get some variants of the error below (despite trying to add freeze_support() to fix things). I'll try on some other platform when I get a chance, but this has me wondering if there's some python oddness happening. (Most of the dataman tests are with single-dimensional arrays, so it seems unlikely that something that basic is broken in dataman. But I've been surprised before.) RuntimeError:
|
I can reproduce as reported with python 3.8 |
Sorry for late reply. I'm currently running with Python 3.11 in a jupyter lab. Thanks for looking into it. |
@dmitry-ganyushin Since you can reproduce, can I ask you to poke at this a bit? I'd be interested to know what happens when you switch to sst from dataman. If you get basically the same thing, then I'd worry about issues with the python interface, and I've really not looked at that at all. (Honestly, with a bit of enforced serialization, one could try this basic code with BP4 or BP5 files. Just force the file write to happen before the read happens. Then we'd have the file left around to run bpls over. That would narrow down the problem to the read side or write side, implicate or eliminate the engine, etc.) |
Hi @dmitry-ganyushin were you able to find the problem? I have not tried SST but can if it would help or did you try that already? |
Thanks you for reporting this issue. It is fixed and it should be in the release 2.9. Maybe we could make a patch for 2.8.3 if you cannot wait. |
And the bug was specific to dataman, so using SST should be a working alternative. |
Describe the bug
Using the dataman engine to send different numpy arrays, I encountered several different behaviours:
np.arange(1,20
))and I try to reshape I still get random zerosnp.random.rand(1,20)
) I don't receive any data and the values are still the pre initialized data valuesTo Reproduce
Expected behavior
To receive the data I sent
Desktop (please complete the following information):
conda create -n <name>-c conda-forge adios2 numpy mpi4py
The text was updated successfully, but these errors were encountered: