View previous topic :: View next topic |
Author |
Message |
Adjeiinfo n00b
Joined: 20 Nov 2012 Posts: 3
|
Posted: Tue Nov 20, 2012 9:26 am Post subject: MPI execution failed |
|
|
I am new to fortran.
[xxx]$ gfortran --version
GNU Fortran (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.
Then I could build my project using gfortran
I run the following to command to run the code
mpirun -f myhostfile -3 5 /myhome/myproject/mympiexe.x [/quote][/topic]
I got the following error
[quote][mpiexec@c24] set_default_values (./ui/mpich/utils.c:1292): no executable specified
[mpiexec@c24] HYD_uii_mpx_get_parameters (./ui/mpich/utils.c:1510): setting default values failed
Could anyone help me solve this issues? |
|
Back to top |
|
|
tony-curtis Tux's lil' helper
Joined: 20 May 2006 Posts: 111
|
Posted: Thu Nov 22, 2012 2:23 am Post subject: |
|
|
What is "mpirun -3 5 ..." supposed to do? Do you want 5 processes? |
|
Back to top |
|
|
Adjeiinfo n00b
Joined: 20 Nov 2012 Posts: 3
|
Posted: Thu Nov 29, 2012 2:36 am Post subject: |
|
|
Thankyou for your reply. I was out of office.
Following is the my job setting bash file
#! /bin/bash
#$ -S /bin/bash
#nodes=5
#ncpu=`expr $nodes \* 2`
#$ -q node.q
#$ -pe core8 40
#$ -j y
#$ -N mpitst
cat $TMPDIR/machines | sed -e 's/$/:2/' > myexecfile
mpirun -f myexecfile -np $ncpu /myhome/myproject/mympiexe.x <<EOF |
|
Back to top |
|
|
tony-curtis Tux's lil' helper
Joined: 20 May 2006 Posts: 111
|
Posted: Thu Nov 29, 2012 2:38 am Post subject: |
|
|
Ah, GridEngine?
If you build your MPI with GE integration you can just say "mpirun <yourprogram>" at the end and the MPI will take care of all the hostfile and -np bits for you.
Code: | #nodes=5
#ncpu=`expr $nodes \* 2` |
these are just comments as far as the shell executing the job is concerned and are ignored.
Not sure what the "here" (<<) on the last line is supposed to do? Are there more lines you truncated? |
|
Back to top |
|
|
Adjeiinfo n00b
Joined: 20 Nov 2012 Posts: 3
|
Posted: Thu Nov 29, 2012 10:05 am Post subject: |
|
|
tony-curtis,
Thank you. It works now. My bad.
Thanks again. |
|
Back to top |
|
|
zhaop n00b
Joined: 22 Jun 2022 Posts: 1
|
Posted: Wed Jun 22, 2022 3:38 pm Post subject: How to set '#$ -q' and #$ -pe'? |
|
|
Adjeiinfo wrote: | Thankyou for your reply. I was out of office.
Following is the my job setting bash file
#! /bin/bash
#$ -S /bin/bash
#nodes=5
#ncpu=`expr $nodes \* 2`
#$ -q node.q
#$ -pe core8 40
#$ -j y
#$ -N mpitst
cat $TMPDIR/machines | sed -e 's/$/:2/' > myexecfile
mpirun -f myexecfile -np $ncpu /myhome/myproject/mympiexe.x <<EOF |
I am happy to find your information here. Before I submit my job, I have to modify
the cpu/cores required for my computing cluster (#$ -q node.q #$ -pe core8 40).
But, I do not know what should I write after "#$ -q" and "#$ -pe". How to know it?
I would be very grateful if you could answer me as much detail as possible. (i'm a rookie) |
|
Back to top |
|
|
|