-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
It would be nice to add support for user-defined @-variables. They could be provided in the experiments.yml or as a separate file. simex would then use those custom @-variables and replace them similarly to the simex @-variables.
If the custom @-variables were to be defined in the experiments.yml, it could look like this:
# The 'variables' field is a key-value-map of the custom @-variables
variables:
- KEY1: value1
- KEY2: value2
experiments:
- name: test
args: ['echo', '@KEY1@', '@EXTRA_ARGS@']
exclusive: true
num_nodes: 8
stdout: out
variants:
- axis: 'keys'
items:
- name: 'key1'
extra_args: ['@KEY1@']
- name: 'key2'
extra_args: ['@KEY2@']Running these experiments should output value1 value1 and value2 value respectively.
This could also solve #174: One could have a custom @-variable RUNTIME: srun and then use it in the experiment setup args: ['@RUNTIME@', ..., '@EXTRA_ARGS@']
Metadata
Metadata
Assignees
Labels
No labels