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

Report the binary file in use #1028

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
17 changes: 12 additions & 5 deletions spinn_front_end_common/utilities/report_functions/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
get_app_partitions)
from pacman.utilities.algorithm_utilities.routes_format import format_route
from spinn_front_end_common.data import FecDataView
from spinn_front_end_common.abstract_models import AbstractHasAssociatedBinary
from .router_summary import RouterSummary

logger = FormatAdapter(logging.getLogger(__name__))
Expand Down Expand Up @@ -328,10 +329,13 @@ def _write_one_vertex_application_placement(f, vertex):
.format(sv.vertex_slice, sv.fpga_id, sv.fpga_link_id,
sv.board_address, sv.linked_chip_coordinates))
else:
binary = ""
if isinstance(sv, AbstractHasAssociatedBinary):
binary = f" using binary file: {sv.get_binary_file_name()}"
cur_placement = FecDataView.get_placement_of_vertex(sv)
x, y, p = cur_placement.x, cur_placement.y, cur_placement.p
f.write(" Slice {} on core ({}, {}, {}) \n"
.format(sv.vertex_slice, x, y, p))
f.write(" Slice {} on core ({}, {}, {}){} \n"
.format(sv.vertex_slice, x, y, p, binary))
f.write("\n")


Expand Down Expand Up @@ -381,6 +385,9 @@ def _write_one_chip_application_placement(f, chip):
pro_id = placement.p
vertex = placement.vertex
app_vertex = vertex.app_vertex
binary = ""
if isinstance(vertex, AbstractHasAssociatedBinary):
binary = f" using binary file: {vertex.get_binary_file_name()}"
if app_vertex is not None:
vertex_label = app_vertex.label
vertex_model = app_vertex.__class__.__name__
Expand All @@ -389,12 +396,12 @@ def _write_one_chip_application_placement(f, chip):
pro_id, vertex_label, vertex_atoms))
f.write(" Slice on this core: {}\n"
.format(vertex.vertex_slice))
f.write(" Model: {}\n".format(vertex_model))
f.write(" Model: {}{}\n".format(vertex_model, binary))
else:
f.write(" Processor {}: System Vertex: '{}'\n".format(
pro_id, vertex.label))
f.write(" Model: {}\n".format(
vertex.__class__.__name__))
f.write(" Model: {}{}\n".format(
vertex.__class__.__name__, binary))

sdram = vertex.sdram_required
f.write(" SDRAM required: {}; {} per timestep\n\n"
Expand Down