How to Exit Parallel Computing in OpenSeesMP

This forum is for issues related to parallel processing
and OpenSees using the new interpreters OpenSeesSP and OpenSeesMP

Moderator: selimgunay

Post Reply
nupassin
Posts: 3
Joined: Fri Oct 31, 2014 3:16 am
Location: Dalian University of Technology

How to Exit Parallel Computing in OpenSeesMP

Post by nupassin »

Dear All,

I am using the OpenSeesMP. In the Main.tcl script, I called several Procedure.tcl using the parellel computing, after which I want to end the parallel mission because the other commends in Main.tcl need to be done in seriel. Is there any commend to transfer parallel to serial in OpenSeesMP? Or how can I end and restart parallel mission again and again?

Thank you!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: How to Exit Parallel Computing in OpenSeesMP

Post by fmk »

no .. but just end all but 1 processor, e.g.

# do parallel stuff
if {$myID == 0} {
# do sequential stuff
}
nupassin
Posts: 3
Joined: Fri Oct 31, 2014 3:16 am
Location: Dalian University of Technology

Re: How to Exit Parallel Computing in OpenSeesMP

Post by nupassin »

Thank you so much, Frank!
I solved the problems follow your ex7.tcl, that's a quite useful example.
ZhuRZ
Posts: 2
Joined: Thu Jan 13, 2022 11:43 am

Re: How to Exit Parallel Computing in OpenSeesMP

Post by ZhuRZ »

Could you tell me where can I download the complete example about parallel computing in OpenSeesMP?
marksteve
Posts: 1
Joined: Thu Mar 14, 2024 2:00 am

Re: How to Exit Parallel Computing in OpenSeesMP

Post by marksteve »

nupassin wrote: Tue Jun 05, 2018 12:34 am Dear All,

I am using the OpenSeesMP. In the Main.tcl script, I called several Procedure.tcl using the parellel computing, after which I want to end the parallel mission because the other commends like ecommerce optimization services in Main.tcl need to be done in seriel. Is there any commend to transfer parallel to serial in OpenSeesMP? Or how can I end and restart parallel mission again and again?

Thank you!
If you want to run parallel computations multiple times within the same script, you may need to reset the MPI environment between each parallel run. However, this approach can be complex and may not be directly supported by OpenSeesMP. It's generally simpler to structure your script to perform parallel and serial computations in separate runs.
Post Reply