I have been searching for a way to use mpi on my mac but everything is very advanced.
I have successfully installed open-mpi using
brew install open-mpi
I have .c files ready for compiling and running. When I type:
mpicc -o <file> <file.c>
followed by
mpirun <file>
I get
[xxxxx-MacBook-Pro.local:13623] [[44919,0],0] ORTE_ERROR_LOG: Bad parameter in file orted/pmix/pmix_server.c at line 262
[xxxxx-MacBook-Pro.local:13623] [[44919,0],0] ORTE_ERROR_LOG: Bad parameter in file ess_hnp_module.c at line 666It looks like orte_init failed for some reason; your parallel process is likely to abort. There are many reasons that a parallel process can fail during orte_init; some of which are due to configuration or environment problems. This failure appears to be an internal failure; here's some additional information (which may only be relevant to an Open MPI developer):
pmix server init failed
--> Returned value Bad parameter (-5) instead of ORTE_SUCCESS
I also get the same message when I enter:
mpirun -np 2 <file>
What am I doing wrong?
mpirun -np 2 hostname
– Hairstreakexport TMPDIR=/tmp
in order to prevent some paths from being truncated – Sukiyaki