40 log_info(
"Starting on chip router compressor");
45 log_debug(
"reading data from 0x%08x", (uint32_t) header);
60 bool failed_by_malloc =
false;
62 bool stop_compressing =
false;
64 &failed_by_malloc, &stop_compressing)) {
66 log_info(
"Compressed the router table from %d to %d entries",
69 log_info(
"Exiting as compressor reported failure");
77 log_info(
"completed router compressor");
81 log_error(
"Failed to minimise routing table to fit %u entries. "
82 "(Original table: %u after compression: %u).",
87 log_debug(
"free sdram blocks which held router tables");
88 FREE((
void *) header);
SpiNNaker routing table minimisation.
bool run_compressor(int compress_as_much_as_possible, bool *failed_by_malloc, volatile bool *stop_compressing)
The callback for setting off the router compressor.
SpiNNaker debug header file.
void log_error(const char *message,...)
This function logs errors. Errors usually indicate a serious fault in the program,...
void log_debug(const char *message,...)
This function logs debugging messages. This level of message is normally not printed except when the ...
void log_info(const char *message,...)
This function logs informational messages. This is the lowest level of message normally printed.
int routing_table_get_n_entries(void)
Get the number of entries in the routing table.
SpiNNaker routing table minimisation.
static void read_table(header_t *header)
Read a new copy of the routing table from SDRAM.
void print_header(header_t *header)
Print the header object for debug purposes.
uint32_t compress_as_much_as_possible
bool load_routing_table(uint32_t app_id)
Load a routing table to the router.
uint sark_heap_max(heap_t *heap, uint flag)
void * sark_tag_ptr(uint tag, uint app_id)
void compress_start(uint unused0, uint unused1)
The callback for setting off the router compressor.
void c_main(void)
the main entrance.
bool standalone(void)
Whether this is a standalone compressor.
uint spin1_schedule_callback(callback_t cback, uint arg0, uint arg1, uint priority)
uint spin1_start(sync_bool sync)