[mpich-discuss] mpirun not running in batch mode.
Gilles Gouaillardet
gilles.gouaillardet at iferc.org
Fri Jun 13 02:26:59 CDT 2014
Hi Francisco,
On 2014/06/13 16:28, Francisco Pastor wrote:
> As I'm using mpich2-1.0.5 I just need an mpd.hosts file in the
> directory I'm running the executable. Yesterday I installed mpich3.1
> and compiled my application but running issued an error about a shared
> library so I went back to mpich2. Maybe I should upgrade.
>
> Going back to mpich2, yes I can run
>
> mpirun -n 40 hostname > log.hostname
>
> both from shell and at, yielding names of the five nodes.
>
> But if run from crontab log.hostname is empty (0 size). Maybe the
> problem is crontab and not application related.
hummm
this is likely due to the environment not being set within cron.
can you run the following script from both shell and crontab and look
for the differences ?
pwd > log.hostname 2>&1
which mpirun >> log.hostname 2>&1
ldd `which mpirun` >> log.hostname 2>&1
ulimit -a >> log.hostname 2>&1
mpirun -n 40 hostname >> log.hostname 2>&1
Cheers,
Gilles
More information about the discuss
mailing list