neurokernel icon indicating copy to clipboard operation
neurokernel copied to clipboard

srun jupyter notebook cannot run mpi_relaunch

Open TK-21st opened this issue 8 years ago • 0 comments

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'])

TK-21st avatar Mar 30 '17 20:03 TK-21st