-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add options to customize execute_experiment.tpl #276
Add options to customize execute_experiment.tpl #276
Conversation
@jdomke I'm curious if this PR addresses your needs |
from a quick look at it, it seems to be doing what i needed, but i have not tried it, do you need me to verify it before you merge, or should i wait until after and debug if necessary? |
Whichever you prefer: it sounds like you are fine with it being merged before you get a chance to test it, so I'll proceed with that assumption unless you say otherwise. |
* show example of not using allocation modifier * restore test config * I was hoping I could expand variables into lists; but I don't think that will work * variable naming consistency * refactor as multi-line strings vs string lists * add test config; demonstrates an odd behavior for expansion of multi-line strings * expand test config * needed for emulating #258 * missing space * style fix * style fix 2 * forgot to re-add argument with new format * relocate execute_experiment template
Closes #258
New variables supported in
variables.yaml
:extra_cmd_opts
: These appear as extra options tompirun
,srun
, or whatever exec cmd is chosen byscheduler
. Newlines can be used for organization, but are removed ("-x 1\n-y 2"
becomesmpirun -x 1 -y 2 ...
)extra_batch_opts
: This appear as batch directive lines at the top of the scriptpost_exec_cmds
: inserted verbatim after the exec (whatever the main experiment binary is run)pre_exec_cmds
: likepost_...
, but before the experiment runsThis also provides a means to define a system or experiment-specific
execute_experiment.tpl
. The experiment can likewise choose to omit theallocation
modifier, and thereby specify everything manually