From e1744594e0cecb81ec300129718bdce385947b7a Mon Sep 17 00:00:00 2001 From: Robert Muchsel <16564465+rotx-maxim@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:59:06 -0500 Subject: [PATCH] Prioritize kernels for layers using all processors to reduce possibility of "holes" in the kernel map (#352) --- izer/kernels.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/izer/kernels.py b/izer/kernels.py index 373e1123..987beb8e 100644 --- a/izer/kernels.py +++ b/izer/kernels.py @@ -1,5 +1,5 @@ ################################################################################################### -# Copyright (C) 2019-2023 Maxim Integrated Products, Inc. All Rights Reserved. +# Copyright (C) 2019-2024 Maxim Integrated Products, Inc. All Rights Reserved. # # Maxim Integrated Products, Inc. Default Copyright Notice: # https://www.maximintegrated.com/en/aboutus/legal/copyrights.html @@ -134,7 +134,14 @@ def check_kernel_mem( with console.Progress(start=True) as progress: task0 = progress.add_task(description='Arranging weights...', total=layers-start_layer) + start_range = [] + end_range = [] for ll in range(start_layer, layers): + if processor_map[ll] == 0xffffffffffffffff: + start_range.append(ll) + else: + end_range.append(ll) + for ll in start_range + end_range: if operator[ll] == op.NONE or bypass[ll] or kernel[ll] is None: assert kern_len[ll] == 0 assert kern_offs[ll] == start_offs