How can I determine the number of processor?

Post Reply
Wangyun
Posts: 13
Joined: Tue Jan 11, 2022 9:11 am

How can I determine the number of processor?

Post by Wangyun » Sun Feb 20, 2022 12:54 pm

Dear STKO team
In our lab, there two workstations.
one: 32 cores and 32 logical processors
another one: 20 cores and 40 logical processors
How can I determine the number of partition when I use parallel calculating?
What determines it? Cores or logical processors?
Thank you

STKO Team
Posts: 1811
Joined: Tue Oct 29, 2019 8:45 am

Re: How can I determine the number of processor?

Post by STKO Team » Mon Feb 21, 2022 9:50 am

You can use at most the number of logical processors.
However, it also depends on the size of the model. If your model is small, using a lot of processors can also slow down the analysis time

Wangyun
Posts: 13
Joined: Tue Jan 11, 2022 9:11 am

Re: How can I determine the number of processor?

Post by Wangyun » Mon Feb 21, 2022 11:11 am

How many elements should exist at every processor when it has a high efficiency?
Thank you

STKO Team
Posts: 1811
Joined: Tue Oct 29, 2019 8:45 am

Re: How can I determine the number of processor?

Post by STKO Team » Mon Feb 21, 2022 2:38 pm

4 to 7 thousands

BuuNguyen
Posts: 98
Joined: Fri Oct 29, 2021 3:28 am
Location: Paraguay
Contact:

Re: How can I determine the number of processor?

Post by BuuNguyen » Thu May 19, 2022 5:25 am

Is it possible if i devide 2000 to 3000 elements per processor?

Now, its around 4000 to 5000 elements per processor. but my CPU just reaches 50 60% of capacity.
Buu

STKO Team
Posts: 1811
Joined: Tue Oct 29, 2019 8:45 am

Re: How can I determine the number of processor?

Post by STKO Team » Thu May 19, 2022 4:12 pm

Yes, do it and try whether you have performance gains or losses... sometimes if you use too many processors it may slow down instead of speed up

Charon
Posts: 22
Joined: Tue Sep 20, 2022 7:16 am

Re: How can I determine the number of processor?

Post by Charon » Sun Mar 26, 2023 5:49 am

Dear STKO Team,

Hi,I have some questions.

1.Now, a year later, have you changed your proposal for the number of cores corresponding to elements and OpenSees mp?

2.My model was previously able to compute with 48 or even 72 cores, however, in the last few days I found that I can only use up to 24 cores and no more, why? I think this slows down the computation and my workstation has a lot of free resources to be wasted. I have attached my model file below.

Best wishes,
Charon
Attachments
20230326.zip
(488.62 KiB) Downloaded 8 times

STKO Team
Posts: 1811
Joined: Tue Oct 29, 2019 8:45 am

Re: How can I determine the number of processor?

Post by STKO Team » Tue Mar 28, 2023 8:16 am

It's crashing if you use too many processors because you are using model subsets. And if you use too many processors, during the first stage, when the superstructure is not preset yet, some processors will be completely empty.

If it was working before, probably empty processors were allowed before (in OpenSees) but not now. We will look into it, but it's in OpenSees, not in STKO.

However, there are some workarounds:
Instead of adding new parts during the analysis, you can add everything at the beginning (but not the interactions that connect the 2 parts).
Let's do an example:
Say you have 2 geometries and 1 interaction that connects them:
  • SOIL
  • STRUCT
  • CONTACT (interaction)
You can do this:
  • Add model subset (SOIL+STRUCT). Since the interaction does not generate nodes, now all nodes are in OpenSees, and all processors are full
  • Fix the STRUCT in ALL DOFS and all NODES (it's not connected to the soil, so it will be singular if you leave them there)
  • Run first analysis
  • Remove the Fix in STRUCT and add modelSUbset with CONTACT

Post Reply