Skip to content

Commit

Permalink
Merge pull request #1439 from SpiNNakerManchester/chip_big
Browse files Browse the repository at this point in the history
Chip simplification
  • Loading branch information
rowleya authored Mar 15, 2024
2 parents 9fed0d5 + be8efde commit f8163c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def find_good_chip(machine, n_target):
chip = machine.get_chip_at(x, y)
if chip:
# Must be greater than to allow the extra monitor
if chip.n_user_processors > n_target:
print(chip.n_user_processors)
if chip.n_placable_processors > n_target:
print(chip.n_placable_processors)
return (x, y)
SpynnakerDataView.raise_skiptest(
f"No Chip found with at least {n_target} user processors")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def find_good_chip(machine, n_target):
chip = machine.get_chip_at(x, y)
if chip:
# Must be greater than to allow the extra monitor
if chip.n_user_processors > n_target:
print(chip.n_user_processors, "processors on", x, y)
if chip.n_placable_processors > n_target:
print(chip.n_placable_processors, "processors on", x, y)
return (x, y)
SpynnakerDataView.raise_skiptest(
f"No Chip found with at least {n_target} user processors")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def find_good_chip(machine, n_target):
chip = machine.get_chip_at(x, y)
if chip:
# Must be greater than to allow the extra monitor
if chip.n_user_processors > n_target:
print(chip.n_user_processors)
if chip.n_placable_processors > n_target:
print(chip.n_placable_processors)
return (x, y)
raise SkipTest("No Chip found with You Need at least {} user processors"
.format(n_target))
Expand Down
2 changes: 1 addition & 1 deletion test_whole_board/test_whole_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def do_run(self):
# find number of cores on machine less one for monitors
self.to_allocate = dict()
for key, chip in machine:
self.to_allocate[key] = chip.n_user_processors - 1
self.to_allocate[key] = chip.n_placable_processors - 1
# less 1 for the gather
self.to_allocate[(0, 0)] -= 1

Expand Down

0 comments on commit f8163c3

Please sign in to comment.