hpcflow.sdk.submission.jobscript.ensure_max_array_size#

hpcflow.sdk.submission.jobscript.ensure_max_array_size(js_data, element_deps)#

For array jobscripts, if the array size is greater than the permitted size, stack actions on top of each other (i.e. wrap the jobscript elements around) to ensure compliance.

The order in which the wrapped actions are stacked is controlled by the array_wrap_order resource item. With "element" (the default), all actions of a given element are run before moving on to the next wrapped element. With "action", a given action is run for all wrapped elements before moving on to the next action.

Parameters:
Return type:

tuple[JobScriptCreationArguments, dict[int, list[int]]]