Solving problems using multiple cores

dudchenkoav
Posts: 45
Joined: Mon Feb 17, 2020 3:27 pm

Solving problems using multiple cores

Post by dudchenkoav » Thu Jun 18, 2020 3:28 pm

Hello!

I have a problem with static and transient analysis using multiple cores. I prepared a model and permorfed the analysis using a single core. However, I can not tune the model so that all the CPU cores are utilized in analysis.
Could anyone give recomendations or send a link with the instructions on how to prepare the model to run analysis using many cores?

Best Regards,
Aleksandr

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

Re: Solving problems using multiple cores

Post by STKO Team » Fri Jun 19, 2020 8:43 am

Dear user,

It is pretty straightforward.
In this webinar we explained how to convert a sequential model into a parallel one:
https://youtu.be/m65mJq6Uce8
If you don't want to watch the entire webinar (about 2 hours), the conversion to parallel analysis is performed around 1:38:00.

As you will see in the webinar, the basic steps are:
  • for each AnalysisStep of type "AnalysesCommand":
    • use the parallel numberer (Parallel RCM)
    • use the MUMPS system (the only one that runs in parallel for generic sparse problems... There is also the ParallelSPD, but you should make sure your system is SPD[Symmetric Positive Definite])
    • In case of DisplacementControl, you should change it to ParallelDisplacementControl
  • Partition the mesh in as many partitions as the number of cores you want to use. Don't use to many cores if your model is small, otherwise the parallel overhead will dominate. Let's say that about 1000 elements per core (at least) is fine.
  • In the Analysis Tab, choose the OpenSeesMP solver and run it!
  • When the analysis is done, you will see many MPCO output files (1 per partition). In the post processor you just need to load (OpenDB) one of them, and thanks to their naming convention, STKO will understand that they are all part of 1 analysis, so will open all the others for you.
Let us know if it works

dudchenkoav
Posts: 45
Joined: Mon Feb 17, 2020 3:27 pm

Re: Solving problems using multiple cores

Post by dudchenkoav » Fri Jun 19, 2020 3:00 pm

Dear STKO Team,

thanks a lot for your answer. Yes, it works now.

Best Regards,
Aleksandr

angga-fajar
Posts: 8
Joined: Fri Jul 31, 2020 1:52 pm

Re: Solving problems using multiple cores

Post by angga-fajar » Fri Jul 31, 2020 4:52 pm

Dear STKO Team,

Hello,

I have tried the using Multi-Processor analysis (OpenseesMP)following your instuction mentioned above for the transient analysis. However the analysis can't work. Could you suggest me the solution?

Thank you for the attention.

Regards,

Clarabella
Posts: 87
Joined: Wed Jul 08, 2020 3:50 pm

Re: Solving problems using multiple cores

Post by Clarabella » Mon Aug 03, 2020 7:16 am

Dear angga-fajar,
I am afraid you need to be more specific, your question is too generic.
Regards

angga-fajar
Posts: 8
Joined: Fri Jul 31, 2020 1:52 pm

Re: Solving problems using multiple cores

Post by angga-fajar » Tue Aug 04, 2020 4:35 am

Dear Clarabella

Here I attach the screen shoot of the input and the error message of the numerical model example. Could you help me....
Thank you for the attention.

Regards,
Attachments
WhatsApp Image 2020-08-04 at 11.30.08.jpeg
WhatsApp Image 2020-08-04 at 11.30.08.jpeg (162.94 KiB) Viewed 1594 times
WhatsApp Image 2020-08-04 at 11.29.59.jpeg
WhatsApp Image 2020-08-04 at 11.29.59.jpeg (338.06 KiB) Viewed 1594 times

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

Re: Solving problems using multiple cores

Post by STKO Team » Sat Aug 08, 2020 11:27 pm

Dear Angga-Fajar, could you please attach your *SCD file (zip it) so that we can have a look?

angga-fajar
Posts: 8
Joined: Fri Jul 31, 2020 1:52 pm

Re: Solving problems using multiple cores

Post by angga-fajar » Fri Aug 14, 2020 12:28 pm

Dear STKO Tim,

Here I attach the SCD file that mentioned at previous.
Please find it. Thank you
Attachments
SOP-Full-Bracing-SPD-MP.zip
(345.99 KiB) Downloaded 50 times

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

Re: Solving problems using multiple cores

Post by STKO Team » Mon Aug 17, 2020 12:49 pm

Dear user,

We found a small bug in the monitor command when used in the load-control and transient analysis templates in parallel analysis.

Please, download this zip folder
Analyses.zip
(7.34 KiB) Downloaded 45 times

and extract its contents (6 *.TCL files) in
C:\Program Files\STKO\external_solvers\opensees\analysis_steps\Analyses, replacing the old ones.
This fix will be available in the next (1.1.3) version of STKO.

templates.png
templates.png (55.23 KiB) Viewed 1378 times

angga-fajar
Posts: 8
Joined: Fri Jul 31, 2020 1:52 pm

Re: Solving problems using multiple cores

Post by angga-fajar » Fri Aug 21, 2020 1:45 am

Dear STKO Team,

Thank you very much for the help, now the transient analysis can work well.

However, in parallel analysis condition, the monitoring structural response during analysis can't work, isn't it?.

Regards,

Post Reply