Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

MPI execution failed

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Adjeiinfo
n00b
n00b
Posts: 3
Joined: Tue Nov 20, 2012 9:01 am

MPI execution failed

  • Quote

Post by Adjeiinfo » Tue Nov 20, 2012 9:26 am

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
[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?
Top
tony-curtis
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Sat May 20, 2006 11:52 pm

  • Quote

Post by tony-curtis » Thu Nov 22, 2012 2:23 am

What is "mpirun -3 5 ..." supposed to do? Do you want 5 processes?
Top
Adjeiinfo
n00b
n00b
Posts: 3
Joined: Tue Nov 20, 2012 9:01 am

  • Quote

Post by Adjeiinfo » Thu Nov 29, 2012 2:36 am

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
Top
tony-curtis
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Sat May 20, 2006 11:52 pm

  • Quote

Post by tony-curtis » Thu Nov 29, 2012 2:38 am

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: Select all

#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?
Top
Adjeiinfo
n00b
n00b
Posts: 3
Joined: Tue Nov 20, 2012 9:01 am

  • Quote

Post by Adjeiinfo » Thu Nov 29, 2012 10:05 am

tony-curtis,

Thank you. It works now. My bad.

Thanks again.
Top
zhaop
n00b
n00b
Posts: 1
Joined: Wed Jun 22, 2022 3:25 pm

How to set '#$ -q' and #$ -pe'?

  • Quote

Post by zhaop » Wed Jun 22, 2022 3:38 pm

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)
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic