Resources parameters#
Note
One can load, modify, and export the input file by using our effective web-based tool DP-GUI online or hosted using the command line interface dpdisp gui. All parameters below can be set in DP-GUI. By clicking “SAVE JSON”, one can download the input file for.
- resources:#
- type:
dictargument path:resources- number_node:#
- type:
int, optional, default:1argument path:resources/number_nodeThe number of nodes required for each job.
- cpu_per_node:#
- type:
int, optional, default:1argument path:resources/cpu_per_nodeCPU numbers of each node assigned to each job.
- gpu_per_node:#
- type:
int, optional, default:0argument path:resources/gpu_per_nodeGPU numbers of each node assigned to each job.
- queue_name:#
- type:
str, optional, default: (empty string)argument path:resources/queue_nameThe queue name of batch job scheduler system.
- group_size:#
- type:
intargument path:resources/group_sizeThe number of tasks in a job. 0 means infinity.
- custom_flags:#
- type:
typing.List[str], optionalargument path:resources/custom_flagsThe extra lines pass to job submitting script header
- strategy:#
- type:
dict, optionalargument path:resources/strategystrategies we use to generation job submitting scripts.
- if_cuda_multi_devices:#
- type:
bool, optional, default:Falseargument path:resources/strategy/if_cuda_multi_devicesIf there are multiple nvidia GPUS on the node, and we want to assign the tasks to different GPUS.If true, dpdispatcher will manually export environment variable CUDA_VISIBLE_DEVICES to different task.Usually, this option will be used with Task.task_need_resources variable simultaneously.
- ratio_unfinished:#
- type:
float, optional, default:0.0argument path:resources/strategy/ratio_unfinishedThe ratio of tasks that can be unfinished.
- customized_script_header_template_file:#
- type:
str, optionalargument path:resources/strategy/customized_script_header_template_fileThe customized template file to generate job submitting script header, which overrides the default file.
- para_deg:#
- type:
int, optional, default:1argument path:resources/para_degDecide how many tasks will be run in parallel.
- source_list:#
- type:
typing.List[str], optional, default:[]argument path:resources/source_listThe env file to be sourced before the command execution.
- module_purge:#
- type:
bool, optional, default:Falseargument path:resources/module_purgeRemove all modules on HPC system before module load (module_list)
- module_unload_list:#
- type:
typing.List[str], optional, default:[]argument path:resources/module_unload_listThe modules to be unloaded on HPC system before submitting jobs
- module_list:#
- type:
typing.List[str], optional, default:[]argument path:resources/module_listThe modules to be loaded on HPC system before submitting jobs
- envs:#
- type:
dict, optional, default:{}argument path:resources/envsThe environment variables to be exported on before submitting jobs
- prepend_script:#
- type:
typing.List[str], optional, default:[]argument path:resources/prepend_scriptOptional script run before jobs submitted.
- append_script:#
- type:
typing.List[str], optional, default:[]argument path:resources/append_scriptOptional script run after jobs submitted.
- wait_time:#
- type:
float|int, optional, default:0argument path:resources/wait_timeThe waitting time in second after a single task submitted
Depending on the value of batch_type, different sub args are accepted.
- batch_type:#
- type:
str(flag key)argument path:resources/batch_typepossible choices:SlurmJobArray,SGE,OpenAPI,Shell,Bohrium,Torque,Slurm,DistributedShell,Fugaku,PBS,LSF,JH_UniSchedulerThe batch job system type loaded from machine/batch_type.
When batch_type is set to
SlurmJobArray(or its aliasslurmjobarray):- kwargs:#
- type:
dict, optionalargument path:resources[SlurmJobArray]/kwargsExtra arguments.
- custom_gpu_line:#
- type:
str|NoneType, optional, default:Noneargument path:resources[SlurmJobArray]/kwargs/custom_gpu_lineCustom GPU configuration, starting with #SBATCH
- slurm_job_size:#
- type:
int, optional, default:1argument path:resources[SlurmJobArray]/kwargs/slurm_job_sizeNumber of tasks in a Slurm job
When batch_type is set to
SGE(or its aliassge):- kwargs:#
- type:
dictargument path:resources[SGE]/kwargsExtra arguments.
- pe_name:#
- type:
str, optional, default:mpi, alias: sge_pe_nameargument path:resources[SGE]/kwargs/pe_nameThe parallel environment name of SGE system.
- job_name:#
- type:
str, optional, default:wDPjobargument path:resources[SGE]/kwargs/job_nameThe name of SGE’s job.
When batch_type is set to
OpenAPI(or its aliasopenapi):- kwargs:#
- type:
dict, optionalargument path:resources[OpenAPI]/kwargsThis field is empty for this batch.
When batch_type is set to
Shell(or its aliasshell):- kwargs:#
- type:
dict, optionalargument path:resources[Shell]/kwargsThis field is empty for this batch.
When batch_type is set to
Bohrium(or its aliasesbohrium,Lebesgue,lebesgue,DpCloudServer,dpcloudserver):- kwargs:#
- type:
dict, optionalargument path:resources[Bohrium]/kwargsThis field is empty for this batch.
When batch_type is set to
Torque(or its aliastorque):- kwargs:#
- type:
dict, optionalargument path:resources[Torque]/kwargsThis field is empty for this batch.
When batch_type is set to
Slurm(or its aliasslurm):- kwargs:#
- type:
dict, optionalargument path:resources[Slurm]/kwargsExtra arguments.
- custom_gpu_line:#
- type:
str|NoneType, optional, default:Noneargument path:resources[Slurm]/kwargs/custom_gpu_lineCustom GPU configuration, starting with #SBATCH
When batch_type is set to
DistributedShell(or its aliasdistributedshell):- kwargs:#
- type:
dict, optionalargument path:resources[DistributedShell]/kwargsThis field is empty for this batch.
When batch_type is set to
Fugaku(or its aliasfugaku):- kwargs:#
- type:
dict, optionalargument path:resources[Fugaku]/kwargsThis field is empty for this batch.
When batch_type is set to
PBS(or its aliaspbs):- kwargs:#
- type:
dict, optionalargument path:resources[PBS]/kwargsThis field is empty for this batch.
When batch_type is set to
LSF(or its aliaslsf):- kwargs:#
- type:
dictargument path:resources[LSF]/kwargsExtra arguments.
- gpu_usage:#
- type:
bool, optional, default:Falseargument path:resources[LSF]/kwargs/gpu_usageChoosing if GPU is used in the calculation step.
- gpu_new_syntax:#
- type:
bool, optional, default:Falseargument path:resources[LSF]/kwargs/gpu_new_syntaxFor LFS >= 10.1.0.3, new option -gpu for #BSUB could be used. If False, and old syntax would be used.
- gpu_exclusive:#
- type:
bool, optional, default:Trueargument path:resources[LSF]/kwargs/gpu_exclusiveOnly take effect when new syntax enabled. Control whether submit tasks in exclusive way for GPU.
- custom_gpu_line:#
- type:
str|NoneType, optional, default:Noneargument path:resources[LSF]/kwargs/custom_gpu_lineCustom GPU configuration, starting with #BSUB
When batch_type is set to
JH_UniScheduler(or its aliasjh_unischeduler):