OpenSeesPy icon indicating copy to clipboard operation
OpenSeesPy copied to clipboard

About OpenSees Parallel

Open hypotenuse345 opened this issue 3 years ago • 1 comments

Hi, thanks for your excellent work, I have learned quite a lot from that. However, when I was trying to follow the instructions about parallel processing with openseespy on https://openseespydoc.readthedocs.io/en/latest/src/hello.html, there is something unpleasant pops out. The function getNP seems doesn't work (always return 1) and then getPID always returns 0. I am not sure if there are some configurations that need to be set at first since when I was running parallel codes with the original OpenseesMP on another PC, a similar problem also exists. Have you encountered the same problem before? image

hypotenuse345 avatar Nov 18 '21 12:11 hypotenuse345

I've encountered the very same problem even after I've switched my code from Windows to WSL. After some attempts, I guess it might be due to the installation method of MPI.

The wrong case: I installed MPI with conda install mpi.

The right case: When I use conda install mpich or sudo apt install mpich instead, it works.

ganansuan647 avatar Jul 10 '24 02:07 ganansuan647