SpiNNakerManchester / SpiNNMachine

A python module which contains a representation of the SpiNNaker Machine
Apache License 2.0
4 stars 3 forks source link

Chip simplification #246

Closed Christian-B closed 6 months ago

Christian-B commented 6 months ago

Combines/replaces https://github.com/SpiNNakerManchester/SpiNNMachine/pull/245, https://github.com/SpiNNakerManchester/SpiNNMachine/pull/244

Renaming:

In Chip/Processor: "is_monitor" -> "scamp" "user" -> "placable" ...Version "n_non_user_cores" -> "n_scamp_cores" TODO: "monitor" in Json passed to Java Note: term "monitor" still kept for none graphs dependant vertices added to all Chips

Remove Processor Class

The Processor class has been removed.

Chip only provides tuples of scamp and placable processor ids

processors -> all_processor_ids user_processors -> placable_processors_ids monitor_processors -> scamp_processors_ids get_first_none_monitor_processor -> placable_processors_ids[0]

Chip is now an X,Y tuple

The Chip class now extends tuple(int, int) The equals and hash are handled by tuple(int,int)

This allows

This means:

Inlcudes: https://github.com/SpiNNakerManchester/SpiNNMan/pull/394 https://github.com/SpiNNakerManchester/PACMAN/pull/548 https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/1165 https://github.com/SpiNNakerManchester/sPyNNaker/pull/1439 https://github.com/SpiNNakerManchester/MarkovChainMonteCarlo/pull/64

tested by: https://github.com/SpiNNakerManchester/IntegrationTests/pull/259