CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

mpirun -np error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2020, 05:53
Default mpirun -np error
  #1
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 6
jayson is on a distinguished road
hello

I am a mew FOAM user. I have a some problem.

This is error message.

I did connect all nodes and shared OpenFOAM-v1912 files.

please help me.

[2phase@knl001 depthCharge3D]$ mpirun -hostfile machines.txt -np 60 -compressibleInterFoam -parallel
----------------------------------------------------------------------------
Open MPI has detected that a parameter given to a command line
option does not match the expected format:

Option: np
Param: -parallel

This is frequently caused by omitting to provide the parameter
to an option that requires one. Please check the command line and try again.
----------------------------------------------------------------------------
jayson is offline   Reply With Quote

Old   January 28, 2020, 17:53
Default
  #2
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
Remove the '-' before 'compressibleInterFoam' ?
Светлана is offline   Reply With Quote

Old   January 28, 2020, 19:26
Default
  #3
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 6
jayson is on a distinguished road
Quote:
Originally Posted by Светлана View Post
Remove the '-' before 'compressibleInterFoam' ?
Thank you! but, another error message comes out


bash: orted: command not found
--------------------------------------------------------------------------
ORTE was unable to reliably start one or more daemons.
This usually is caused by:

* not finding the required libraries and/or binaries on
one or more nodes. Please check your PATH and LD_LIBRARY_PATH
settings, or configure OMPI with --enable-orterun-prefix-by-default

* lack of authority to execute on one or more specified nodes.
Please verify your allocation and authorities.

* the inability to write startup files into /tmp (--tmpdir/orte_tmpdir_base).
Please check with your sys admin to determine the correct location to use.

* compilation of the orted with dynamic libraries when static are required
(e.g., on Cray). Please check your configure cmd line and consider using
one of the contrib/platform definitions for your system type.

* an inability to create a connection back to mpirun due to a
lack of common network interfaces and/or no route found between
them. Please check network connectivity (including firewalls
and network routing requirements).
--------------------------------------------------------------------------
jayson is offline   Reply With Quote

Old   January 28, 2020, 19:48
Default
  #4
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
From this thread ([OMPI users]) environment variables need to be set in bashrc for non-interactive logins, e.g. at the top of the bashrc file. Do you have this?

Mike also gave helpful troubleshooting tips at this forum post.
Светлана is offline   Reply With Quote

Old   January 28, 2020, 20:44
Default
  #5
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 6
jayson is on a distinguished road
Quote:
Originally Posted by Светлана View Post
From this thread ([OMPI users]) environment variables need to be set in bashrc for non-interactive logins, e.g. at the top of the bashrc file. Do you have this?

Mike also gave helpful troubleshooting tips at this forum post.
thanks.
what means about "non-interactive logins"? I installed OF in shared home.
and I set correct path..
jayson is offline   Reply With Quote

Old   January 28, 2020, 21:24
Default
  #6
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
1. Are all processes expected to run on the same computer or on different ones? If on different ones, the child processes will need to log in to the remote computer without you. This is not interactive.

2. How did you set the path?

Thanks,
Светлана is offline   Reply With Quote

Old   January 28, 2020, 22:02
Default
  #7
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 6
jayson is on a distinguished road
Quote:
Originally Posted by Светлана View Post
1. Are all processes expected to run on the same computer or on different ones? If on different ones, the child processes will need to log in to the remote computer without you. This is not interactive.

2. How did you set the path?

Thanks,
I just write these.
export PATH=$PATH:/usr/local/opt/openmpi/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opt/openmpi/lib

but I installed openmpi-1.10.7 in Thrid party-v1912. so do I write the path differently?

for example,
export PATH=$PATH:/home/2phase/OpenFOAM/ThridParty-v1912/openmpi-1.10.7/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/2phase/OpenFOAM/ThridParty-v1912/openmpi-1.10.7/lib
hanks for your help
jayson is offline   Reply With Quote

Old   January 28, 2020, 22:59
Default
  #8
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
I would suggest to put these two lines at the top (not at the bottom) of your bashrc.
Светлана is offline   Reply With Quote

Old   January 28, 2020, 23:04
Default
  #9
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 6
jayson is on a distinguished road
Quote:
Originally Posted by Светлана View Post
I would suggest to put these two lines at the top (not at the bottom) of your bashrc.
I put two lines at the top in baschrc whicn located in OpenFOAM-v1912/etc.
but the same error message comes out..
thank you
jayson is offline   Reply With Quote

Old   January 30, 2020, 20:10
Default
  #10
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
I would suggest to follow Mike's troubleshooting steps which I linked earlier, and post the results here.
Светлана is offline   Reply With Quote

Old   April 25, 2021, 08:05
Default
  #11
New Member
 
cyou
Join Date: Nov 2011
Posts: 15
Rep Power: 14
cyou is on a distinguished road
Quote:
Originally Posted by jayson View Post
Thank you! but, another error message comes out


bash: orted: command not found
--------------------------------------------------------------------------
ORTE was unable to reliably start one or more daemons.
This usually is caused by:

* not finding the required libraries and/or binaries on
one or more nodes. Please check your PATH and LD_LIBRARY_PATH
settings, or configure OMPI with --enable-orterun-prefix-by-default

* lack of authority to execute on one or more specified nodes.
Please verify your allocation and authorities.

* the inability to write startup files into /tmp (--tmpdir/orte_tmpdir_base).
Please check with your sys admin to determine the correct location to use.

* compilation of the orted with dynamic libraries when static are required
(e.g., on Cray). Please check your configure cmd line and consider using
one of the contrib/platform definitions for your system type.

* an inability to create a connection back to mpirun due to a
lack of common network interfaces and/or no route found between
them. Please check network connectivity (including firewalls
and network routing requirements).
--------------------------------------------------------------------------
So, finally, how did you solve this problem?
cyou is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 06:35
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 08:10.