Afraid I have to agree with the prior reply - sounds like NPROC isn't getting defined, which causes your cmd line to look like your original posting.

On Feb 27, 2012, at 10:29 PM, Syed Ahsan Ali wrote:

The following command in used in script for job submission
${MPIRUN} -np ${NPROC} -hostfile ${ABSDIR}/hostlist -mca btl sm,openib,self --mca btl_openib_use_srq 1 ./hrm >> ${OUTFILE}_hrm 2>&1
where NPROC in defined in someother file. The same application is running on the other system with same configuration.

On Tue, Feb 28, 2012 at 10:12 AM, PukkiMonkey <> wrote:
 No of processes missing after -np
Should be something like:
mpirun -np 256 ./exec

Sent from my iPhone

On Feb 27, 2012, at 8:47 PM, Syed Ahsan Ali <> wrote:

Dear All,

I am running an application with mpirun but it gives following error, it is not picking up hostlist, there are other applications which run well with hostlist but it just gives following error with 

[pmdtest@pmd02 d00_dayfiles]$ tail -f *_hrm
mpirun -np  /home/MET/hrm/bin/hrm
Could not execute the executable "/home/MET/hrm/bin/hostlist": Exec format error

This could mean that your PATH or executable name is wrong, or that you do not
have the necessary permissions.  Please ensure that the executable is able to be
found and executed.


Following the permission of the hostlist directory. Please help me to remove this error.

[pmdtest@pmd02 bin]$ ll
total 7570
-rwxrwxrwx 1 pmdtest pmdtest 2517815 Feb 16  2012 gme2hrm
-rwxrwxrwx 1 pmdtest pmdtest       0 Feb 16  2012
-rwxrwxrwx 1 pmdtest pmdtest     473 Jan 30  2012 hostlist
-rwxrwxrwx 1 pmdtest pmdtest 5197698 Feb 16  2012 hrm
-rwxrwxrwx 1 pmdtest pmdtest       0 Dec 31  2010
-rwxrwxrwx 1 pmdtest pmdtest    1680 Dec 31  2010 mpd.hosts

Thank you and Regards


users mailing list

users mailing list

Syed Ahsan Ali Bokhari
Electronic Engineer (EE)

Research & Development Division
Pakistan Meteorological Department H-8/4, Islamabad.
Phone # off  +92518358714
Cell # +923155145014

users mailing list