-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
108 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Set the cluster account | ||
|
||
Use the default action to conveniently set the account (or accounts) once in your | ||
`workflow.toml`. It will apply to all actions that do not override the account | ||
|
||
```toml | ||
[default.action.submit_options.cluster1] | ||
account "cluster1-account" | ||
[default.action.submit_options.cluster2] | ||
account "cluster2-account" | ||
|
||
[[action]] | ||
# Will use the defaults above. | ||
|
||
[[action]] | ||
# Will use the defaults above. | ||
|
||
[[action]] | ||
submit_options.cluster1.account = "alternate-account" | ||
# Will use the "alternate-account" on cluster1 and "cluster2-account" on cluster2. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# How-to | ||
|
||
This section shows how to accomplish various tasks in Row that are not covered in the | ||
tutorial. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Submit the same action to different groups/resources | ||
|
||
You can submit the same action to different groups and resources. To do so, | ||
create multiple elements in the action *array with the same name*. Each must use | ||
[`group.include`](../../workflow/action/group.md#include) to select *non-overlapping | ||
subsets*. You can use [`action.from`](../../workflow/action/index.md#from) to copy all | ||
fields from one action and selectively override others. | ||
|
||
For example, this `workflow.toml` uses 4 processors on small systems and 8 on large | ||
ones. | ||
|
||
```toml | ||
[default.action] | ||
command = "python actions.py --action $ACTION_NAME {directories}" | ||
|
||
[[action]] | ||
name = "compute" | ||
products = ["results.out"] | ||
[action.resources] | ||
walltime.per_submission = "12:00:00" | ||
processes.per_directory = 4 | ||
[action.group] | ||
include = [["/N", "<=", "4096"]] | ||
maximum_size = 32 | ||
|
||
[[action]] | ||
from = "compute" | ||
resources.processes.per_directory = 8 | ||
group.include = [["/N", ">", "4096"]] | ||
group.maximum_size = 16 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
[workspace] | ||
value_file = "signac_statepoint.json" | ||
|
||
[default.action] | ||
command = "python actions.py --action $ACTION_NAME {directories}" | ||
|
||
[[action]] | ||
name = "square" | ||
command = "python actions.py --action $ACTION_NAME {directories}" | ||
products = ["square.out"] | ||
resources.walltime.per_directory = "00:00:01" | ||
|
||
[[action]] | ||
name = "compute_sum" | ||
command = "python actions.py --action $ACTION_NAME {directories}" | ||
previous_actions = ["square"] | ||
resources.walltime.per_directory = "00:00:01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# default | ||
|
||
The `default` table sets default options. | ||
|
||
Example: | ||
|
||
```toml | ||
[default.action.submit_options.cluster1] | ||
account = "my_account" | ||
``` | ||
|
||
## action | ||
|
||
`default.action`: **table** - accepts *any* key that is valid in | ||
an [action array element](action/index.md). When an action array element omits a key, | ||
the default key is used. When both the action **and** the default action omit a key, | ||
the individually documented "when omitted" behavior takes effect. | ||
|
||
> Note: This rule applies to all sub-keys as well. For example: | ||
> ```toml | ||
> [default.action.resources] | ||
> processes.per_submission = 8 | ||
> walltime.per_directory = "02:00:00" | ||
> | ||
> [[action]] | ||
> name = "action" | ||
> command = "command {directory}" | ||
> resources.processes.per_submission = 16 | ||
> ``` | ||
> Will result in an action that sets `processes.per_submission == 16` and | ||
> `walltime.per_directory == "02:00:00"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters