[siegelj@tc-login MPI_Revisited]$ mpi_spawn 1 2 Next the Spawn pid=26645 After the Spawn I'm the parent process pid=26645 and rank= 0, runing on tc-login.red.lan I'm a spawned process pid=26649 and rank= 1, runing on tc-login.red.lan I'm a spawned process pid=26652 and rank= 3, runing on tc-login.red.lan I'm a spawned process pid=26650 and rank= 2, runing on tc-login.red.lan Task 2 has sent its message to Task 1. Task 1 received this message: Hello Other Task Task 2 received this message from Task 1 You are Welcome Other Task Got here 3 Got here 1 Got here 0 Got here 2 [siegelj@tc-login MPI_Revisited]$ mpi_spawn 3 0 Next the Spawn pid=26677 After the Spawn I'm the parent process pid=26677 and rank= 0, runing on tc-login.red.lan I'm a spawned process pid=26681 and rank= 1, runing on tc-login.red.lan I'm a spawned process pid=26684 and rank= 3, runing on tc-login.red.lan I'm a spawned process pid=26682 and rank= 2, runing on tc-login.red.lan Task 0 has sent its message to Task 3. Task 3 received this message: Hello Other Task. Task 0 received this message from Task 3 You are Welcome Other Task. Got here 1 Got here 3 Got here 0 Got here 2
SLURM
[siegelj@tc-login MPI_Revisited]$ cat spawntest_2722.out I'm a spawned process pid=3764 and rank= 1, runing on tc-node159.red.lan I'm a spawned process pid=9401 and rank= 3, runing on tc-node161.red.lan Task 1 received this message: Hello Other Task. I'm a spawned process pid=3745 and rank= 2, runing on tc-node160.red.lan Task 2 has sent its message to Task 1. Got here 1 Task 2 received this message from Task 1 You are Welcome Other Task. Got here 2 Got here 3 Next the Spawn pid=3745 After the Spawn I'm the parent process pid=3745 and rank= 0, runing on tc-node159.red.lan Got here 0 [siegelj@tc-login MPI_Revisited]$