schrodinger.job.resource module

Specification of requirements for jobs.

class schrodinger.job.resource.ComputeRequirement(compute_type=None)

Bases: object

Simple class to hold requirements for jobs that hosts must fulfill

__init__(compute_type=None)

Create a ComputeRequirement instance

Parameters

compute_type (ComputeType) – Whether CPU or GPU is required. Use this option if JobDJ should auto detect host types and capabilities.

class schrodinger.job.resource.ComputeType(value)

Bases: enum.Enum

An enumeration.

CPU = 1
GPU = 2