Skip to content

User supplied @-variables #175

@nizomovs

Description

@nizomovs

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions