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

srun jupyter notebook cannot run mpi_relaunch #56

Open
TK-21st opened this issue Mar 30, 2017 · 0 comments
Open

srun jupyter notebook cannot run mpi_relaunch #56

TK-21st opened this issue Mar 30, 2017 · 0 comments

Comments

@TK-21st
Copy link
Member

TK-21st commented Mar 30, 2017

running mpi_relaunch in a jupyter notebook opened with srun does not work.

To work around it:

  1. open jupyter notebook without using srun
  2. run mpi_relaunch with subprocess inside jupyter cell as follow:
    import subprocess
    subprocess.call(['srun','--gres=gpu:1','--pty','python','you_code_that_calls_mpi_relaunch.py'])
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