Git Product home page Git Product logo

Comments (4)

enielse avatar enielse commented on September 17, 2024

I was able to run your script successfully on multiple systems after replacing the actual data (loaded from files that I don't have) with simulated data (using pygsti.construction.generate_fake_data). I don't think this change should make any difference in the issue you're seeing, so I think there may be an issue with your MPI installation.

I've seen this same error once before, and in that case it was an MPI library error - not mpi4py but the underlying openmpi or mpich installation. To test this, please try to run the following script, which just tests whether your MPI split function works independently of anything pyGSTi related.

Put this in test.py:

from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
color = rank / 4
spltcomm = comm.Split(color=color, key=rank)
print("Rank %d: color=%d, split-comm rank=%d" % (rank, color, spltcomm.Get_rank()))

and then execute it via mpiexec -n 16 python test.py. This produces the following output on my system (line ordering is inconsequential and may be different on your machine):

Rank 3: color=0, split-comm rank=3
Rank 5: color=1, split-comm rank=1
Rank 6: color=1, split-comm rank=2
Rank 7: color=1, split-comm rank=3
Rank 8: color=2, split-comm rank=0
Rank 9: color=2, split-comm rank=1
Rank 10: color=2, split-comm rank=2
Rank 11: color=2, split-comm rank=3
Rank 12: color=3, split-comm rank=0
Rank 13: color=3, split-comm rank=1
Rank 14: color=3, split-comm rank=2
Rank 15: color=3, split-comm rank=3
Rank 0: color=0, split-comm rank=0
Rank 1: color=0, split-comm rank=1
Rank 2: color=0, split-comm rank=2
Rank 4: color=1, split-comm rank=0

If you get an error or different output this probably means your MPI library is broken. The last time I saw this, the MPI error you cited above was reproduced by the comm.Split call in test.py.

from pygsti.

gribeill avatar gribeill commented on September 17, 2024

Thanks for the hints! Unfortunately the test script appears to work fine on this machine. I'll do some more investigating and try a clean install of MPI as soon as I can.

from pygsti.

matthewware avatar matthewware commented on September 17, 2024

@gribeill, did we decide this was due to a parser issue/malformed file?

from pygsti.

gribeill avatar gribeill commented on September 17, 2024

Yes, fixing the data file (no extra comments!) and a clean install of MPI seems to have fixed everything so I will close.

from pygsti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.