Skip to content

Commit be8d2bb

Browse files
committed
Use the new bucket's idx in call to sampleselect_filter for cuda/hip and dpcpp
1 parent 579e996 commit be8d2bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/cuda_hip/factorization/par_ilut_select_kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void threshold_select(std::shared_ptr<const DefaultExecutor> exec,
119119
partial_counts, total_counts);
120120
auto new_bucket = sampleselect_find_bucket(exec, total_counts, rank);
121121
sampleselect_filter(exec, tmp_in, bucket.size, oracles, partial_counts,
122-
bucket.idx, tmp_out);
122+
new_bucket.idx, tmp_out);
123123

124124
rank -= new_bucket.begin;
125125
bucket.size = new_bucket.size;

dpcpp/factorization/par_ilut_select_kernel.dp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -122,7 +122,7 @@ void threshold_select(std::shared_ptr<const DefaultExecutor> exec,
122122
partial_counts, total_counts);
123123
auto new_bucket = sampleselect_find_bucket(exec, total_counts, rank);
124124
sampleselect_filter(exec, tmp_in, bucket.size, oracles, partial_counts,
125-
bucket.idx, tmp_out);
125+
new_bucket.idx, tmp_out);
126126

127127
rank -= new_bucket.begin;
128128
bucket.size = new_bucket.size;

0 commit comments

Comments
 (0)