You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will become "#SBATCH --nodes=2"in batch job script if application kernel should
288
290
run on two nodes.
289
291
290
-
In order to enter shell curly brackets they should be enter as double curly
291
-
brackets. All double curly brackets will be replaced with single curly bracket
292
-
during batch job script generation.
293
-
294
-
> Example:
295
-
>
296
-
>"awk "{{for (i=0;i<$_TASKS_PER_NODE;++i)print}}"
297
-
>
298
-
>in template variable will become:
299
-
>
300
-
>"awk "{for (i=0;i<$_TASKS_PER_NODE;++i)print}"
301
-
>
302
-
>in batch job script.
303
-
>
292
+
In order to enter curly brackets itself they should be enter as double curly
293
+
brackets (i.e. ${{ENV_VAR}} in template will be ${ENV_VAR} in resulting script).
304
294
305
295
The commented parameters will assume default values. Below is the description of
306
296
the parameters and their default values:
@@ -324,16 +314,18 @@ the parameters and their default values:
324
314
|**Batch job script settings**|
325
315
| batch_scheduler | N | Scheduler type: slurm or pbs. sge might work as well but was not tested | Must be set|
326
316
| batch_job_header_template | N | Header for batch job script. Describe the resources requests andsetAKRR_NODELIST environment variable containing list of all nodes.See below for more detailed information. | Must be set|
317
+
| max_number_of_active_tasks | Y | Maximal number of active tasks, default is-1, that is no limits |-1|
327
318
328
319
329
-
## How to set _batch_job_header_template_
330
-
331
320
_batch_job_header_template _is a template used in the generation of batch job
332
321
scripts. It specifies the resources (e.g. number of nodes) and other parameters
333
322
used by scheduler.
334
323
335
324
The following are instructions on how to convert batch job script header to _batch_job_header_template_.
325
+
326
+
<!---
336
327
For more details see [Batch Job Script Generation](AKRR_Batch_Job_Script_Generation.md).
328
+
--->
337
329
338
330
Below is a batch script which execute NAMD application on resorch which use Slurm:
339
331
@@ -401,9 +393,11 @@ below:
401
393
402
394
Now, we can generate test application kernel batch job script and visually
403
395
inspect it for mistake presence. Run:
396
+
404
397
```bash
405
398
akrr task new --dry-run --gen-batch-job-only -r <resource_name>-a test -n 2
406
399
```
400
+
407
401
This command will generate batch job script and output it to standard output.
0 commit comments