neurokernel
neurokernel copied to clipboard
srun jupyter notebook cannot run mpi_relaunch
running mpi_relaunch in a jupyter notebook opened with srun does not work.
To work around it:
- open jupyter notebook without using
srun - run
mpi_relaunchwith subprocess inside jupyter cell as follow:import subprocesssubprocess.call(['srun','--gres=gpu:1','--pty','python','you_code_that_calls_mpi_relaunch.py'])