Questions tagged [mpiexec]

`mpiexec` is the command used to start [tag:MPI] applications. It replaces many earlier non-standard commands used by various implementations (including `mpirun`).

mpiexec is the command used to start applications. It replaces many earlier non-standard commands used by various implementations (including mpirun). All MPI implementations are now required to provide a command mpiexec to launch applications. This can be found in the most recent version (3.0) of the MPI Standard in Section 8.8, Portable MPI Process Startup

In some instances, mpiexec can also be used to refer to the process launcher that actually launches each local and remote instance of the application, however this is usually better described as the process launcher.

59 questions
73
votes
2 answers

mpiexec vs mpirun

As per my little knowledge mpirun and mpiexec both are launcher. Can anybody tell the exact difference between mpiexec and mpirun?
DEV
  • 2,106
  • 3
  • 25
  • 40
16
votes
2 answers

mpiexec and python mpi4py gives rank 0 and size 1

I have a problem with running a python Hello World mpi4py code on a virtual machine. The hello.py code is: #!/usr/bin/python #hello.py from mpi4py import MPI comm = MPI.COMM_WORLD size = comm.Get_size() rank = comm.Get_rank() print "hello world…
ziuu
  • 346
  • 1
  • 3
  • 9
10
votes
1 answer

MPI and D: Linker Options

I'm trying to use MPI with the D programming language. D fully supports the C ABI and can link with and call any C code. I've done the obvious stuff and translated the MPI header to D. I then translated a test program from Wikipedia to D. I…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
7
votes
1 answer

Mpiexec difference between -n and -np?

I'm new to the MPI world and there is a question that is really annoying me. What's the real difference between -n and -np?
olegario
  • 711
  • 2
  • 16
  • 35
6
votes
1 answer

Microsoft MPI doesn't run

I'm trying out Microsoft's implementation of MPI. I installed the CCP sdk from here: http://www.microsoft.com/en-us/download/details.aspx?id=239 And then in my project settings I added the include folder, the lib folder and mentioned…
Xavier Varricatt
  • 61
  • 1
  • 1
  • 2
2
votes
3 answers

How to execute mpirun or mpiexec command from a python script?

I have an MPI application written in C++. When I run the application using mpirun or mpiexec on my local machine shell, it works fine. The problem is that the mpi application should be executed after a request from the network (e.g. HTTP request) is…
2
votes
1 answer

Tell if stdout is a tty using MPI in C

During the execution of a C compiled program in a terminal, isatty(fileno(stderr)) as well as isatty(0) returns 0 in my code when I use the mpirun or mpiexec commands. Why ? and How do I know if stdout is a terminal or redirected while using MPI…
2
votes
1 answer

Using line_profiler/kernprof with mpiexec

I'm trying to do some line-by-line profiling of a Python program that uses mpi4py using the kernprof (https://github.com/rkern/line_profiler) profiler. If I simply run the script with in the normal way: kernprof -l -v mpi_program.py everything…
rasmush
  • 61
  • 1
  • 7
2
votes
1 answer

mpiexec - Credentials for user rejected connecting host

To do some exercise to be more familiar with MPI, i installed MS-MPI on my windows 10 machine, and then mpi4py (python MPI). I tried a hello_world code: from mpi4py import MPI def main (): comm = MPI. COMM_WORLD rank = comm . Get_rank () …
user3047441
  • 33
  • 1
  • 5
2
votes
1 answer

Combining xargs parallel and mpirun

I have an embarassingly parallel (bash) script that is running in a computing cluster. The script is a shell script and is not linked to any MPI library: this means that the only way I can send the MPI rank to it, is with a command line…
Antonio Ragagnin
  • 2,278
  • 4
  • 24
  • 39
2
votes
0 answers

Communication between mpiexec and mpi4py not working?

I have written a script which I was running on a Ubuntu 14.04 LTS machine in python2.7 using mpi4py. Here is a snippet from the beginning: from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() print…
P-M
  • 1,279
  • 2
  • 21
  • 35
1
vote
1 answer

"Host key verification failed" error when running mpiexec within a cluster

I'm trying to create an mpi cluster by connecting two laptops and running mpi programs. I followed the steps as mentioned here (https://medium.com/mpi-cluster-setup/mpi-clusters-within-a-lan-77168e0191b1). I am able to ssh to the other nodes without…
Guna
  • 71
  • 4
1
vote
0 answers

Why does importing MPI from mpi4py break subprocess calls to mpiexec?

If I initiate a subprocess call to mpiexec within a python script in which MPI is imported, then the call fails. For example, when calling python test.py, where test.py has the following code import subprocess if __name__ == "__main__": …
1
vote
1 answer

mpiexec : why is my python program running on only one CPU?

I am trying to parallelize a python program (program_to_parallelize.py) into 16 subprocesses on my 16 cores machine. I use this code, which is part of a Python script : import subprocess subprocess.call("mpiexec -n 16 python…
1
vote
3 answers

mpiexec + python + ^C: __del__ method not executed (and no traceback)

I have the following test_mpi.py python script: from mpi4py import MPI import time class Foo: def __init__(self): print('Creation object.') def __del__(self): print('Object destruction.') foo = Foo() time.sleep(10) If I…
ngreiner
  • 61
  • 3
1
2 3 4