CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to add both processor for parallel

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2023, 06:34
Default How to add both processor for parallel
  #1
New Member
 
Parth1999's Avatar
 
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5
Parth1999 is on a distinguished road
Hi
I am using hp z6 g4 workstation which has two processors, each having 20 cores
but while typing lscpu it showing only 20cores, and 1 processor, how can i use other processor and its core also
because in system properties it clearly shows 2 processors. I am only able to break down in 20 subdomains


pls help
Parth1999 is offline   Reply With Quote

Old   April 13, 2023, 03:30
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Parth1999 View Post
Hi
I am using hp z6 g4 workstation which has two processors, each having 20 cores
but while typing lscpu it showing only 20cores, and 1 processor, how can i use other processor and its core also
because in system properties it clearly shows 2 processors. I am only able to break down in 20 subdomains


pls help

lscpu reports information about the CPU. Presumably both of your cpus are identical, so it only lists information about one cpu type. This is the same on my machine (also dual socket).
If you instead examine the output of "cat /proc/cpuinfo" you will see information on a per thread basis. Pay attention to the following fields in that output (physical id, core id, cpu cores, siblings). If you have hyperthreading enabled, you will notice that the core id appears twice on each processor.


But you don't need to worry about any of that. Just use mpirun -np NUMPROC when starting your jobs, MPI will take care of the rest.
Parth1999 likes this.
olesen is offline   Reply With Quote

Old   April 13, 2023, 04:25
Default
  #3
New Member
 
Parth1999's Avatar
 
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5
Parth1999 is on a distinguished road
Quote:
Originally Posted by olesen View Post
lscpu reports information about the CPU. Presumably both of your cpus are identical, so it only lists information about one cpu type. This is the same on my machine (also dual socket).
If you instead examine the output of "cat /proc/cpuinfo" you will see information on a per thread basis. Pay attention to the following fields in that output (physical id, core id, cpu cores, siblings). If you have hyperthreading enabled, you will notice that the core id appears twice on each processor.


But you don't need to worry about any of that. Just use mpirun -np NUMPROC when starting your jobs, MPI will take care of the rest.

Hi
tried this i typed mpirun -np 40 mydisFoam -parallel
earlier i was using 20 instead of 40

but im getting this error



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

intraVenFoam

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.


pls help
Parth1999 is offline   Reply With Quote

Old   April 13, 2023, 06:29
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Just like the help says:
Alternatively, you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.
olesen 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
Gmsh reports an OpenCascade exception when opening a .geo file algc Main CFD Forum 2 October 24, 2022 05:59
[snappyHexMesh] SnappyHex add layers, is it adding hex's? Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 1 July 18, 2016 09:05
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 09:23
How to add Exner equation in settlingFoam jimbean OpenFOAM Running, Solving & CFD 1 October 6, 2013 09:59
How to add fire source in STAR-CD?? raymond Siemens 2 February 22, 2002 13:49


All times are GMT -4. The time now is 01:48.