Subgroups tests - sub_group_non_uniform_scan_exclusive function fixes (#1350)

* Fix - comparing results will never happen.

* No special action needed for one work item in the subgroup
This commit is contained in:
Grzegorz Wawiorko
2021-11-25 14:41:06 +01:00
committed by GitHub
parent 6dff4fdffa
commit 6f50623ba8

View File

@@ -630,19 +630,12 @@ template <typename Ty, ArithmeticOp operation> struct SCEX_NU
{ {
continue; continue;
} }
else if (active_work_items.size() == 1)
{
continue;
}
else else
{ {
tr = TypeManager<Ty>::identify_limits(operation); tr = TypeManager<Ty>::identify_limits(operation);
int idx = 0;
for (const int &active_work_item : active_work_items) for (const int &active_work_item : active_work_items)
{ {
rr = my[ii + active_work_item]; rr = my[ii + active_work_item];
if (idx == 0) continue;
if (!compare_ordered(rr, tr)) if (!compare_ordered(rr, tr))
{ {
log_error( log_error(
@@ -655,7 +648,6 @@ template <typename Ty, ArithmeticOp operation> struct SCEX_NU
} }
tr = calculate<Ty>(tr, mx[ii + active_work_item], tr = calculate<Ty>(tr, mx[ii + active_work_item],
operation); operation);
idx++;
} }
} }
} }