Skip to content

Commit

Permalink
move load_application logic to FEC
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jun 22, 2023
1 parent a30cef7 commit 1a8fd35
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions spinnman/transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,43 +1334,6 @@ def execute_flood(
self._scamp_connection_selector)
process.run(n_bytes, app_id, core_subsets, chksum, wait)

def execute_application(self, executable_targets, app_id):
"""
Execute a set of binaries that make up a complete application on
specified cores, wait for them to be ready and then start all of the
binaries.
.. note::
This will get the binaries into c_main but will not signal the
barrier.
:param ExecutableTargets executable_targets:
The binaries to be executed and the cores to execute them on
:param int app_id: The app_id to give this application
"""
# Execute each of the binaries and get them in to a "wait" state
for binary in executable_targets.binaries:
core_subsets = executable_targets.get_cores_for_binary(binary)
self.execute_flood(
core_subsets, binary, app_id, wait=True, is_filename=True)

# Sleep to allow cores to get going
time.sleep(0.5)

# Check that the binaries have reached a wait state
count = self.get_core_state_count(app_id, CPUState.READY)
if count < executable_targets.total_processors:
cores_ready = self.get_cores_not_in_state(
executable_targets.all_core_subsets, [CPUState.READY])
if len(cores_ready) > 0:
raise SpinnmanException(
f"Only {count} of {executable_targets.total_processors} "
"cores reached ready state: "
f"{self.get_core_status_string(cores_ready)}")

# Send a signal telling the application to start
self.send_signal(app_id, Signal.START)

def power_on_machine(self):
"""
Power on the whole machine.
Expand Down

0 comments on commit 1a8fd35

Please sign in to comment.