Skip to content

Commit

Permalink
DOC: Add intent of parameter sweep example for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
pan14001 committed May 8, 2019
1 parent 477f870 commit 073040c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,28 @@ Completed SLURM job 2339009 in 00:00:04
Started SLURM job 2339010
Completed SLURM job 2339010 in 00:00:00
```

### Example 3: Parameter Sweep

A parameter sweep is running the same program with combinations of
input parameters.

This example is nearly the same as the previous example, but instead
of using the the task ID as the input, it uses a long list of record
IDs. The record ID is read by the program to find the corresponding
input parameters, and saves the result.

Results are saved into a directory and, once all records are
completed, the results are aggregated into a single results file.

GNU Parallel automatically feeds record IDs to task workers as the
task workers complete records and become available.

```sh
# From the command-line
cd ~/parallel-slurm/examples
rm -f joblog submit.out
for i in {1..5}; do sbatch 03-submit-param-sweep.slurm; done
touch submit.out && tail -f submit.out
# Hit Ctrl+C to exit
```

0 comments on commit 073040c

Please sign in to comment.