schrodinger.application.livedesign.job_utils module¶
LiveDesign protocol job launching utils.
Copyright Schrodinger, LLC. All rights reserved.
- schrodinger.application.livedesign.job_utils.get_procs(backend)[source]¶
Determine the HOST and number of CPUs to be used
- Parameters
backend ('schrodinger.job.jobcontrol._Backend', None) – Job backend object
- Returns
Hostname and the number of CPUs to run the job across
- Return type
str, int
- schrodinger.application.livedesign.job_utils.use_smart_dist()[source]¶
Enable/disable Smart Distribution when running on a queuing system based on the ‘SCHRODINGER_LD_SMARTDIST’ env var. By default, backend drivers running on a jobdj will have smart distribution on by default. This function will detect this env var has been set and disable smart distribution if desired
Default behavior (True) is to use Smart Distribution when the env var is not set
- Returns
True/False based on the env var setting
- Return type
bool