Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prioritize kernels for layers using all processors #352

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion izer/kernels.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down