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

A problem about parallel computing

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By babala

Reply
 
LinkBack Thread Tools Display Modes
Old   November 19, 2013, 05:33
Default A problem about parallel computing
  #1
New Member
 
Zhiyuan Li
Join Date: Aug 2013
Location: Beijing
Posts: 9
Rep Power: 3
babala is on a distinguished road
Hello,
I am running a test on a Redhat server.I plan to run the test with two nodes(every node has 8 CPUs). We can name the two nodes as node1 and node2.
I use the commond as userguide:

mpirun -hostfile machine -np 16 rhoCentralFoam -parallel

The file of machine is like this:
node1
node2

However, the terminal gives me a error information follows:

--------------------------------------------------------------------------
Open RTE detected a parse error in the hostfile:
machine
It occured on line number 3 on token 1.
--------------------------------------------------------------------------
[c2-8:27938] [[27546,0],0] ORTE_ERROR_LOG: Error in file base/ras_base_allocate.c at line 222
[c2-8:27938] [[27546,0],0] ORTE_ERROR_LOG: Error in file base/plm_base_launch_support.c at line 99
[c2-8:27938] [[27546,0],0] ORTE_ERROR_LOG: Error in file plm_rsh_module.c at line 1173

Then, I just use one node, And I modify the file of machine as this:

node1

And input the commond
mpirun -hostfile machine -np 8 rhoCentralFoam -parallel

the solver can work successifully.
And the other node is OK,too.I don't know how to solve this problem.

Any answers is appreciated.

best regards
Zhiyuan Li

Last edited by babala; November 20, 2013 at 04:13.
babala is offline   Reply With Quote

Old   November 26, 2013, 18:23
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Zhiyuan Li and welcome to the forum!

Quick answer - follow these instructions: 7. How do I run a simple SPMD MPI job?

Long answer - check this blog post with a lot of links that can help with several topics regarding running in parallel: Notes about running OpenFOAM in parallel

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 27, 2013, 00:31
Default
  #3
New Member
 
Zhiyuan Li
Join Date: Aug 2013
Location: Beijing
Posts: 9
Rep Power: 3
babala is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Zhiyuan Li and welcome to the forum!

Quick answer - follow these instructions: 7. How do I run a simple SPMD MPI job?

Long answer - check this blog post with a lot of links that can help with several topics regarding running in parallel: Notes about running OpenFOAM in parallel

Best regards,
Bruno

hello, Bruno.
Thank you for your replies.
I have solved the problems. I created the file of machine.txt in Windows system and editted it in Windows system,too.And, Linux system can't identify contents of the file.Then I editted the file by vim and the solver can run in parallel perfectly.
The mistake is so stupid.Hope somebody else won't make the same mistake.

Best regards
Zhiyuan
wyldckat likes this.
babala is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with RenumberMesh in parallel in OpenFOAM 2.1.1 srini_esi OpenFOAM Mesh Utilities 1 November 8, 2013 03:48
Problem in using UDF in parallel computing Yogini Fluent UDF and Scheme Programming 0 January 22, 2013 09:23
Parallel Run problem shhe OpenFOAM Running, Solving & CFD 1 April 27, 2010 06:52
Problem in Parallel UDF Giacomo de Renzi FLUENT 12 June 18, 2008 12:19
problem!! FLUENT 6.2 -SUSE parallel computing khanjaved FLUENT 1 August 15, 2005 22:00


All times are GMT -4. The time now is 02:04.