pacman.operations.chip_id_allocator_algorithms package

Module contents

class pacman.operations.chip_id_allocator_algorithms.MallocBasedChipIdAllocator[source]

Bases: pacman.utilities.algorithm_utilities.element_allocator_algorithm.ElementAllocatorAlgorithm

A Chip ID Allocation Allocator algorithm that keeps track of chip IDs and attempts to allocate them as requested

__call__(machine, graph=None)[source]
Parameters:
Return type:

Machine

Raises:

PacmanConfigurationException – If a virtual chip is in an impossible position.

allocate_chip_ids(machine, graph)[source]

Go through the chips (real and virtual) and allocate keys for each

Parameters:
Raises:

PacmanConfigurationException – If a virtual chip is in an impossible position.