Skip to content
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

How to test 10-task-pull-spawn.py? #15

Open
jiapei100 opened this issue Jun 14, 2020 · 0 comments
Open

How to test 10-task-pull-spawn.py? #15

jiapei100 opened this issue Jun 14, 2020 · 0 comments

Comments

@jiapei100
Copy link

10-task-pull-spawn.py should be run as Program should be started without argument. However,

pi@pi01:~/Downloads/mpi4py-examples $ python 10-task-pull-spawn.py 
--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 10 slots
that were requested by the application:
  /usr/bin/python

Either request fewer slots for your application, or make more slots available
for use.
--------------------------------------------------------------------------
Traceback (most recent call last):
  File "10-task-pull-spawn.py", line 38, in <module>
    maxprocs=n_workers)
  File "mpi4py/MPI/Comm.pyx", line 1534, in mpi4py.MPI.Intracomm.Spawn
mpi4py.MPI.Exception: MPI_ERR_SPAWN: could not spawn processes

If I run with mpirun, program hangs:

pi@pi01:~/Downloads/mpi4py-examples $ mpirun --hostfile ~/hostfile python 10-task-pull-spawn.py 
--------------------------------------------------------------------------
All nodes which are allocated for this job are already filled.
--------------------------------------------------------------------------
Traceback (most recent call last):
  File "10-task-pull-spawn.py", line 38, in <module>
    maxprocs=n_workers)
  File "mpi4py/MPI/Comm.pyx", line 1534, in mpi4py.MPI.Intracomm.Spawn
mpi4py.MPI.Exception: MPI_ERR_SPAWN: could not spawn processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant