3

Parallel processing of jobs with openstudio

I know there are several options for running parallel jobs with OpenStudio (e.g. PAT with Amazon EC2, Openstudio Analysis Spreadsheet). Are there any parallel processing tools built directly into the OpenStudio run manager?

jmcneill's avatar
1.7k
jmcneill
asked 2015-08-27 16:15:28 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2015-11-28 08:16:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

You can use the setMaxLocalJobs method of ConfigOptions. Are you using RunManager through the Python bindings?

macumber's avatar
12k
macumber
answered 2015-08-27 17:31:11 -0500
edit flag offensive 0 remove flag delete link

Comments

@macumber my intent is to use the runmanager with the python bindings, but I'd happy to use whatever the recommended workflow is. I have fairly large number of OSM files that I need to run and have access to a decent server.

I've found the workflow vs job vs jobfactory convention to be confusing. I've tried to follow the descriptions in the SDK documentation, but am still working through how to make it run my simulations in parallel.

jmcneill's avatar jmcneill (2015-08-27 17:36:24 -0500) edit

I think this test shows how to run OSMs in a decent fashion, you could just enqueue several jobs before unpausing. This code snippet shows how to make a config options (that you could call setMaxLocalJobs on) and the pass that to the RunManager:

openstudio::runmanager::RunManager rm;
openstudio::runmanager::ConfigOptions co = rm.getConfigOptions();
co.findTools(true, false, true, true);
rm.setConfigOptions(co);
macumber's avatar macumber (2015-08-28 10:35:01 -0500) edit

Are you just looking to run OSMs and not apply measures? Or are you looking to also apply measures?

macumber's avatar macumber (2015-08-28 10:35:26 -0500) edit

@rhorsey is adding a method to the OS-spreadsheet to batch run predefined datapoints.

BrianLBall's avatar BrianLBall (2015-08-28 15:51:57 -0500) edit

@jmcneill the batch run option in the OS-spreadsheet could be used for your use case with the ReplaceModel measure. If you come in next week we should give you an overview of that approach and see if it would work for you.

macumber's avatar macumber (2015-09-02 00:13:47 -0500) edit
add a comment see more comments