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

Using several nodes in a simulation (OpenFOAM)

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

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2019, 04:35
Default Using several nodes in a simulation (OpenFOAM)
  #1
New Member
 
Join Date: Aug 2019
Posts: 7
Rep Power: 3
Didu is on a distinguished road
Dear all,
I'm quite new in using OpenFOAM in a cluster, using only one node is a breeze...
the problem starts when I need to use more than one node...
I'm using the command 'mpirun --host node1,node2 -np 48 rhoSimpleFoam -parallel' and I get the following info/error

There are not enough slots available in the system to satisfy the 48
slots that were requested by the application:

rhoSimpleFoam

Either request fewer slots for your application, or make more slots
available for use.

A "slot" is the Open MPI term for an allocatable unit where we can
launch a process. The number of slots available are defined by the
environment in which Open MPI processes are run:

1. Hostfile, via "slots=N" clauses (N defaults to number of
processor cores if not provided)
2. The --host command line parameter, via a ":N" suffix on the
hostname (N defaults to 1 if not provided)
3. Resource manager (e.g., SLURM, PBS/Torque, LSF, etc.)
4. If none of a hostfile, the --host command line parameter, or an
RM is present, Open MPI defaults to the number of processor cores

In all the above cases, if you want Open MPI to default to the number
of hardware threads instead of the number of processor cores, use the
--use-hwthread-cpus option.

Alternatively, you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.

I'm doing something wrong, please help...
OpenFOAM - v1906
Didu is offline   Reply With Quote

Old   February 19, 2020, 13:52
Default
  #2
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 102
Rep Power: 6
dewey is on a distinguished road
Did you find what was going wrong?

I am trying to simulate in a cluster but I dont have idea how to start
dewey is offline   Reply With Quote

Old   February 19, 2020, 17:44
Default
  #3
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 624
Rep Power: 7
HPE is on a distinguished road
This had nothing to with OF.

I strongly suggest not to rush running big cases in a supercomputer to avoid wasting money (of taxpayers).

Learn 5w1h of the cluster, follow the tutorials, start with the simplest case, and build up from there.
HPE is offline   Reply With Quote

Old   February 20, 2020, 03:29
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 128
Rep Power: 10
Yann is on a distinguished road
Hello Didu,

As HPE said, your problem is not related to OpenFOAM but to openmpi. It would be useful to know which openmpi version you are using.

I think you just need to specify how many processes you want to run on each node. Try using this syntax:
Code:
mpirun --host node1:24,node2:24 -np 48 rhoSimpleFoam -parallel

Cheers,
Yann
HPE likes this.
Yann is offline   Reply With Quote

Reply

Tags
mpirun, nodes, openfoam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 3 July 1, 2020 09:58
Optimizing OpenFOAM simulation megs OpenFOAM Running, Solving & CFD 5 September 3, 2019 03:50
OpenFoam 4.1: interDyMFoam LES Simulation for hydro turbine in river pi__sec OpenFOAM Running, Solving & CFD 13 July 19, 2017 04:08
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
Which turbulence model is applicable for Plain diffuser flow simulation in openFOAM? mukut OpenFOAM Running, Solving & CFD 4 January 30, 2015 08:06


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