@@ -58,7 +58,7 @@ tasklist file. We copy the input file to a scratch directory `/scratch/project/
...
@@ -58,7 +58,7 @@ tasklist file. We copy the input file to a scratch directory `/scratch/project/
execute the myprog.x and copy the output file back to the submit directory, under the `$TASK.out` name. The myprog.x executable runs on one node only and must use threads to run in parallel.
execute the myprog.x and copy the output file back to the submit directory, under the `$TASK.out` name. The myprog.x executable runs on one node only and must use threads to run in parallel.
Be aware, that if the myprog.x **is not multithreaded or multi-process (MPI)**, then all the **jobs are run as single-thread programs, wasting node resources**.
Be aware, that if the myprog.x **is not multithreaded or multi-process (MPI)**, then all the **jobs are run as single-thread programs, wasting node resources**.
## Submiting Job Array
## Submitting Job Array
To submit the job array, use the `sbatch --array` command. The 900 jobs of the [example above][2] may be submitted like this:
To submit the job array, use the `sbatch --array` command. The 900 jobs of the [example above][2] may be submitted like this: