python - MPI4Py Scatter sendbuf Argument Type? -


After

I'm having trouble in the scanner function in the MPI4Py Python module My impression, however, that I should be able to make a list for Bejenbfr, when I do I get the error message, or the other two arguments, Rikwuf add root:

< pre> file "code / step3.py", line 682, in subbox_grid i = mpi_communicator.Scatter (station_range, station_data) file "Comm.pyx", line 427, mpi4py.MPI.Comm.Scatter (src / mpi4py_MPI .c: 44,993) in the file "message.pxi", line 321, .MPI._p_msg_cco.for_scatter in mpi4py (src / mpi4py_MPI.c: 14,497) file "message.pxi", line 232, mpi4py.MPI._p_msg_cco.for_cco_send (Src / mpi4py_M PI.c: 13630) in the file "message.pxi", line 36, in mpi4py.MPI.message_simple (src / mpi4py_MPI.c: 11,904) ValueError: Message: 2 or 3 items expected < p> here is the relevant code snipped a few things to the station to begin a few lines up to 682 stations - station_data = [] station_range = range (1, len (station)) some stuff with mpi_communicator = MPI.COMM_WORLD i = mpi_communicator do

  scatter (Steshn_sreni, ns m) # Snip - [i] NSM do some stuff with station = alliance (average weight, dnew, NF1, NL1, WTI [i], WTM , Station [i] .id) station_data = mpi_communicator.gath Er (station_range, nsm)  

I have tried several combinations that started station_range, but I should not understand the scatter logic type properly.

Is Python / MPI Guru an explanation?

After

If you want to move raw buffers (as collect < / Code>), you provide a tripartite [buffer, size, type] . See demo for examples of this if you want to send python objects, you should use a higher level interface and collect (note lowercase) which is pickle internal Uses the form.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -