polaris.Component.get_available_resources

Component.get_available_resources(placement=None)[source]

Get available resources from the active parallel system

Parameters:

placement (mache.parallel.ResourcePlacement, optional) – The part of the allocation a step is confined to. When it is given, the resources described are that subset’s rather than the whole allocation’s, so that a confined step is told about what it can actually use. Resources withheld from a step have to be genuinely withheld, not merely subtracted from a number.

Returns:

available_resources (dict) – Available CPU and GPU resources and machine capabilities