From 0f7e3da823b82992395af03388e2b5eb5a36574b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 Apr 2023 10:23:27 +0100 Subject: [PATCH] link in new parallel-prefix REMAP schedule --- src/openpower/decoder/isa/svshape.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/isa/svshape.py b/src/openpower/decoder/isa/svshape.py index 8b453375..e34c0842 100644 --- a/src/openpower/decoder/isa/svshape.py +++ b/src/openpower/decoder/isa/svshape.py @@ -11,6 +11,8 @@ from openpower.decoder.selectable_int import (FieldSelectableInt, SelectableInt, from openpower.decoder.isa.remapyield import iterate_indices from openpower.decoder.isa.remap_preduce_yield import (iterate_indices as iterate_preduce_indices) +from openpower.decoder.isa.remap_preduce_yield import (iterate_indices2 as + iterate_pprefix_indices) from openpower.decoder.isa.remap_fft_yield import iterate_butterfly_indices from openpower.decoder.isa.remap_dct_yield import ( iterate_dct_inner_butterfly_indices, @@ -168,7 +170,11 @@ class SVSHAPE(SelectableInt): if self.mode == 0b00: iterate_fn = iterate_indices elif self.mode == 0b10: - iterate_fn = iterate_preduce_indices + # further sub-selection + if self.skip & 0b10: + iterate_fn = iterate_pprefix_indices # parallel-prefix + else: + iterate_fn = iterate_preduce_indices # parallel-reduce elif self.mode in [0b01, 0b11]: # further sub-selection if self.ydimsz == 1: -- 2.30.2