Skip to content

Commit

Permalink
DOC: Clarify how example 3 uses the input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pan14001 committed May 8, 2019
1 parent 073040c commit a27fa56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,19 @@ 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.
input parameters, the program calculates the result from the
parameters and saves the result in a directory.

Results are saved into a directory and, once all records are
completed, the results are aggregated into a single results file.
Once all records are completed, the results from the directory 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
rm -rf joblog submit.out results/ results.csv
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
Expand Down

0 comments on commit a27fa56

Please sign in to comment.