dpdispatcher.machines package
Machines.
Submodules
dpdispatcher.machines.distributed_shell module
- class dpdispatcher.machines.distributed_shell.DistributedShell(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit th job to yarn using distributed shell.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.dp_cloud_server module
- class dpdispatcher.machines.dp_cloud_server.Bohrium(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_local_script
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
map_dp_job_state
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.fugaku module
- class dpdispatcher.machines.fugaku.Fugaku(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.lsf module
- class dpdispatcher.machines.lsf.LSF(*args, **kwargs)[source]
Bases:
Machine
LSF batch.
Methods
default_resources
(resources)get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
deserialize
do_submit
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
- check_status(**kwargs)
- do_submit(**kwargs)
Submit a single job, assuming that no job is running there.
dpdispatcher.machines.openapi module
- class dpdispatcher.machines.openapi.OpenAPI(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_local_script
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
map_dp_job_state
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.pbs module
- class dpdispatcher.machines.pbs.PBS(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
- class dpdispatcher.machines.pbs.SGE(*args, **kwargs)[source]
Bases:
PBS
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
- class dpdispatcher.machines.pbs.Torque(*args, **kwargs)[source]
Bases:
PBS
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.shell module
- class dpdispatcher.machines.shell.Shell(*args, **kwargs)[source]
Bases:
Machine
Methods
do_submit
(job)Submit a single job, assuming that no job is running there.
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
resources_subfields
()Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
dpdispatcher.machines.slurm module
- class dpdispatcher.machines.slurm.Slurm(*args, **kwargs)[source]
Bases:
Machine
Methods
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
do_submit
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
- check_status(**kwargs)
- do_submit(**kwargs)
Submit a single job, assuming that no job is running there.
- class dpdispatcher.machines.slurm.SlurmJobArray(*args, **kwargs)[source]
Bases:
Slurm
Slurm with job array enabled for multiple tasks in a job.
Methods
get_exit_code
(job)Get exit code of the job.
kill
(job)Kill the job.
resources_arginfo
()Generate the resources arginfo.
Generate the resources subfields.
arginfo
bind_context
check_finish_tag
check_if_recover
check_status
default_resources
deserialize
do_submit
gen_command_env_cuda_devices
gen_script
gen_script_command
gen_script_custom_flags_lines
gen_script_end
gen_script_env
gen_script_header
gen_script_run_command
gen_script_wait
load_from_dict
load_from_json
load_from_yaml
serialize
sub_script_cmd
sub_script_head
- check_status(**kwargs)