Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Different Partitions #89

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions spinn_pdp2/input_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,13 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
assert key is not None
spec.write_value (key, data_type = DataType.UINT32)

# write link keys: bps (padding)
Expand Down
12 changes: 4 additions & 8 deletions spinn_pdp2/sum_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,13 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bps (padding)
Expand All @@ -337,15 +335,13 @@ def generate_machine_data_specification(
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: lds
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.lds_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: fsg
key = routing_info.get_first_key_from_pre_vertex (
key = routing_info.get_key_from (
self, self.fsg_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# Reserve and write the stage configuration region
Expand Down
9 changes: 3 additions & 6 deletions spinn_pdp2/threshold_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,24 +483,21 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
assert key is not None
spec.write_value (key, data_type = DataType.UINT32)

# write link keys: bps (padding)
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: stp
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.stp_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: lds (padding)
Expand Down
12 changes: 4 additions & 8 deletions spinn_pdp2/weight_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,13 @@ def generate_machine_data_specification(
spec.switch_write_focus (MLPRegions.ROUTING.value)

# write link keys: fwd
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fwd_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bkp
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.bkp_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: bps (padding)
Expand All @@ -371,15 +369,13 @@ def generate_machine_data_specification(
spec.write_value (0, data_type = DataType.UINT32)

# write link keys: lds
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.lds_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# write link keys: fsg
key = routing_info.get_first_key_from_pre_vertex(
key = routing_info.get_key_from(
self, self.fsg_link)
assert key is not None
spec.write_value(key, data_type=DataType.UINT32)

# Reserve and write the stage configuration region
Expand Down