hpcflow.sdk.submission.jobscript.merge_jobscripts_across_tasks#

hpcflow.sdk.submission.jobscript.merge_jobscripts_across_tasks(jobscripts, min_jobscripts=True, logger=None)#

Try to merge jobscripts between tasks.

This is possible if two jobscripts share the same resources and have an array dependency (i.e. one-to-one element dependency mapping).

Parameters:
  • min_jobscripts (bool) – If True (the default), minimise the total number of jobscripts by performing as many merges as possible. This may merge otherwise independent jobscripts, such that they are run sequentially rather than in parallel.

  • jobscripts (Mapping[int, JobScriptCreationArguments])

  • logger (logging.Logger | None)

Return type:

Mapping[int, JobScriptCreationArguments]