<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Pavan,
<div class=""><br class="">
</div>
<div class="">Is there difference between mpirun and mpiexec. I understand the official standards only specifies mpiexec, and mpirun often (is it always?) is a link to mpiexec. Is there `unofficial` convention for mpirun, such as always present, always a link,
no difference to mpiexec at all? It appears to me that mpirun is more wide spread than mpiexec (I always have been using mpirun).</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
— </div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Hui Zhou</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="">
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Nov 21, 2018, at 5:34 PM, Balaji, Pavan via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><br class="">
I should clarify one piece of how mpiexec works:<br class="">
<br class="">
% ./real.exe<br class="">
<br class="">
and<br class="">
<br class="">
% mpirun -np 1 ./real.exe<br class="">
<br class="">
are equivalent.<br class="">
<br class="">
% mpirun ./real.exe<br class="">
<br class="">
uses some number of processes depending on the environment. For unmanaged clusters, that's typically 1. For clusters that have some job management system (such as slurm or pbs), mpiexec will figure out how many nodes you allocated and use all of the cores
allocated to that job.<br class="">
<br class="">
My guess is that real.exe has some dependencies that are met on the local machine, but not on other machines. So when mpiexec tries to launch real.exe on other nodes, it's throwing an error. This is not an mpiexec problem, but you might want to use the -prepend-pattern
option in mpiexec to figure out where the error is coming from. Something like this:<br class="">
<br class="">
mpiexec -prepend-pattern %h ./real.exe<br class="">
<br class="">
-- Pavan<br class="">
<br class="">
<blockquote type="cite" class="">On Nov 4, 2018, at 10:27 AM, Zhifeng Yang via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:<br class="">
<br class="">
Hi<br class="">
<br class="">
After I installed mpich and used it in a FORTRAN code. There is an error while running this FORTRAN code called real.exe by using the following command<br class="">
<br class="">
$./real.exe<br class="">
or<br class="">
$mpirun ./real.exe<br class="">
real.exe: error: _get_addr: No such file or directory<br class="">
real.exe: error: _get_addr: No such file or directory<br class="">
real.exe: error: _get_addr: No such file or directory<br class="">
Fatal error in MPI_Init: Other MPI error, error stack:<br class="">
MPIR_Init_thread(784).....:<br class="">
MPID_Init(1323)...........: channel initialization failed<br class="">
MPIDI_CH3_Init(120).......:<br class="">
MPID_nem_init_ckpt(852)...:<br class="">
MPIDI_CH3I_Seg_commit(364): PMI_Barrier returned -1<br class="">
<br class="">
But while using mpirun with specifying number of processors. as follows<br class="">
$mpirun -np 1 ./real.exe<br class="">
There is no error any more. I am not sure why? do you have any explanation? Thank you very much<br class="">
<br class="">
Best regards<br class="">
Zhifeng<br class="">
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</blockquote>
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>