Skip to content

Commit

Permalink
rename chip user processor(s) chip placable processor(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 7, 2024
1 parent 9fed0d5 commit be8efde
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 be8efde

Please sign in to comment.