Skip to content

Commit 2a7275c

Browse files
committed
fix issues after rebase
1 parent 76dd812 commit 2a7275c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

omp/distributed/index_map_kernels.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@ void build_mapping(
5858
auto sort_it = detail::make_zip_iterator(
5959
full_remote_part_ids.begin(), recv_connections_ptr, range_ids.begin());
6060
std::sort(sort_it, sort_it + input_size, [](const auto& a, const auto& b) {
61-
return std::tie(std::get<0>(a), std::get<1>(a)) <
62-
std::tie(std::get<0>(b), std::get<1>(b));
61+
return std::tie(get<0>(a), get<1>(a)) < std::tie(get<0>(b), get<1>(b));
6362
});
6463

6564
// get only unique connections
66-
auto unique_end = std::unique(
67-
sort_it, sort_it + input_size, [](const auto& a, const auto& b) {
68-
return std::tie(std::get<0>(a), std::get<1>(a)) ==
69-
std::tie(std::get<0>(b), std::get<1>(b));
70-
});
65+
auto unique_end = std::unique(sort_it, sort_it + input_size,
66+
[](const auto& a, const auto& b) {
67+
return std::tie(get<0>(a), get<1>(a)) ==
68+
std::tie(get<0>(b), get<1>(b));
69+
});
7170
auto unique_size = std::distance(sort_it, unique_end);
7271

7372
remote_global_idxs.resize_and_reset(unique_size);

test/base/iterator_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "common/unified/base/kernel_launch.hpp"
1414
#include "core/test/utils.hpp"
15-
#include "test/utils/executor.hpp"
15+
#include "test/utils/common_fixture.hpp"
1616

1717

1818
class IteratorFactory : public CommonTestFixture {
@@ -35,7 +35,7 @@ class IteratorFactory : public CommonTestFixture {
3535
void run_zip_iterator(std::shared_ptr<gko::EXEC_TYPE> exec,
3636
gko::array<int>& key_array, gko::array<int>& value_array)
3737
{
38-
gko::kernels::EXEC_NAMESPACE::run_kernel(
38+
gko::kernels::GKO_DEVICE_NAMESPACE::run_kernel(
3939
exec,
4040
[] GKO_KERNEL(auto i, auto keys, auto values, auto size) {
4141
auto begin = gko::detail::make_zip_iterator(keys, values);

0 commit comments

Comments
 (0)