Skip to content

Parallel bouquet#7

Open
StuartBenjamin wants to merge 20 commits into
d-burg:mainfrom
StuartBenjamin:parallel_bouquet
Open

Parallel bouquet#7
StuartBenjamin wants to merge 20 commits into
d-burg:mainfrom
StuartBenjamin:parallel_bouquet

Conversation

@StuartBenjamin

Copy link
Copy Markdown

This PR adds a method-agnostic support for running bouquet in parallel.
The parallel scripts have a modular structure, so new bouquet methods can be adapted for their use.

In more detail:
New script parallel.py distributes some general set of (input_files, load_files_obj, bouquet_method)
across available CPU cores. Each case (ie. each timeslice, kinetic equilibrium, shot)
has an associated tuple of input file names, which are read into python using the specified
load method, and then passed to the bouquet method. parallel_runner distributes
these cases across available CPU cores and runs them in parallel.

Two example scripts are provided, one with a list of geqdsk, peqdsk files, and one with an IDA file and list of peqdsks.

This PR builds on #5 and #6, so should be implemented after them. As of June 9 it is up to date with main

…filePerturber (these are just 'precompute_factor' split into two separate steps)
…er-specific print statements for parallel environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant