Skip to content

Commit

Permalink
Revert "added report and seems to be working"
Browse files Browse the repository at this point in the history
This reverts commit b748da5.
  • Loading branch information
rowleya committed Feb 2, 2015
1 parent d9bfb07 commit 9c46905
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 331 deletions.
2 changes: 2 additions & 0 deletions pacman/model/partitioned_graph/partitioned_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def __init__(self, resources_required, label, constraints=None):
.AbstractConstraint`
:raise pacman.exceptions.PacmanInvalidParameterException:
* If one of the constraints is not valid
* If lo_atom is less than 0
* If hi_atom is less than lo_atom
"""
AbstractConstrainedVertex.__init__(self, label=label)
self._label = label
Expand Down
7 changes: 0 additions & 7 deletions pacman/model/routing_info/subedge_routing_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,3 @@ def mask(self):
def subedge(self):
return self._subedge

def __repr__(self):
return "subedge:{}, key:{}, mask:{}"\
.format(self._subedge, hex(self._key), hex(self._mask))

def __str__(self):
return self.__repr__()

Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
from pacman.operations.routing_info_allocator_algorithms.\
basic_routing_info_allocator import BasicRoutingInfoAllocator
from pacman.operations.routing_info_allocator_algorithms.\
malloc_based_routing_allocator.malloc_based_routing_info_allocator \
import MallocBasedRoutingInfoAllocator
basic_routing_info_allocator import BasicRoutingInfoAllocator

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 1 addition & 2 deletions pacman/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DEFAULT_MASK = 0xfffff800 # DEFAULT LOCATION FOR THE APP MASK
BITS_IN_KEY = 32
DEFAULT_MASK = 0xfffff800 # DEFAULT LOCATION FOR THE APP MASK
9 changes: 3 additions & 6 deletions pacman/utilities/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,23 +254,20 @@ def routing_info_report(report_folder, hostname, subgraph, placements,
routing_infos):
file_name = os.path.join(report_folder,
"virtual_key_space_information_report.rpt")
output = None
try:
output = open(file_name, "w")
except IOError:
logger.error("generate virtual key space information report: "
"Can't open file {} for writing.".format(file_name))

for subvert in subgraph.subvertices:
output.write("Subvert: {} \n".format(subvert))
outgoing_subedges = subgraph.outgoing_subedges_from_subvertex(subvert)
for outgoing_subedge in outgoing_subedges:
subedge_routing_info = routing_infos.\
get_subedge_information_from_subedge(outgoing_subedge)
output.write("{} \n".format(subedge_routing_info))
output.write("\n\n")
output.flush()
output.close()





def router_report_from_router_tables(report_folder, routing_tables):
Expand Down

0 comments on commit 9c46905

Please sign in to comment.