[OMPI users] MPI + system() call + Matlab MEX crashes

2016-10-05 Thread juraj2...@gmail.com
Hello, I have an application in C++(main.cpp) that is launched with multiple processes via mpirun. Master process calls matlab via system('matlab -nosplash -nodisplay -nojvm -nodesktop -r "interface"'), which executes simple script interface.m that calls mexFunction (mexsolve.cpp) from which I try

[OMPI users] MPI_Comm_spawn

2016-09-29 Thread juraj2...@gmail.com
The solution was to use the "tcp", "sm" and "self" BTLs for the transport of MPI messages, with TCP restricting only the eth0 interface to communicate and using ob1 as p2p management layer: mpirun --mca btl_tcp_if_include eth0 --mca pml ob1 --mca btl tcp,sm,self -np 1 --hostfile my_hosts ./manager

[OMPI users] MPI_Comm_spawn

2016-09-29 Thread juraj2...@gmail.com
Hello, I am using MPI_Comm_spawn to dynamically create new processes from single manager process. Everything works fine when all the processes are running on the same node. But imposing restriction to run only a single process per node does not work. Below are the errors produced during multinode