|
[Sponsors] |
April 12, 2023, 06:34 |
How to add both processor for parallel
|
#1 |
New Member
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
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 |
|
April 13, 2023, 03:30 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40 |
Quote:
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. |
||
April 13, 2023, 04:25 |
|
#3 | |
New Member
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
Quote:
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 |
||
April 13, 2023, 06:29 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40 |
Just like the help says:
Alternatively, you can use the --oversubscribe option to ignore the |
|
|
|
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 |