Skip to content

Commit

Permalink
review updates:
Browse files Browse the repository at this point in the history
- renaming

Co-authored-by: Pratik Nayak <[email protected]>
  • Loading branch information
MarcelKoch and pratikvn committed Apr 4, 2024
1 parent 6b893a1 commit 989967d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions common/cuda_hip/distributed/index_map_kernels.hpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void get_local(
std::shared_ptr<const DefaultExecutor> exec,
const experimental::distributed::Partition<LocalIndexType, GlobalIndexType>*
partition,
const array<experimental::distributed::comm_index_type>& remote_targed_ids,
const array<experimental::distributed::comm_index_type>& remote_target_ids,
const collection::array<GlobalIndexType>& remote_global_idxs,
experimental::distributed::comm_index_type rank,
const array<GlobalIndexType>& global_ids,
Expand Down Expand Up @@ -214,8 +214,8 @@ void get_local(
: invalid_index<LocalIndexType>();
};

auto remote_target_ids_ptr = remote_targed_ids.get_const_data();
auto num_target_ids = remote_targed_ids.get_size();
auto remote_target_ids_ptr = remote_target_ids.get_const_data();
auto num_target_ids = remote_target_ids.get_size();
auto remote_global_idxs_ptr =
remote_global_idxs.get_flat().get_const_data();
auto offsets_ptr = remote_global_idxs.get_offsets().get_const_data();
Expand Down
2 changes: 1 addition & 1 deletion dpcpp/distributed/index_map_kernels.dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void get_local(
std::shared_ptr<const DefaultExecutor> exec,
const experimental::distributed::Partition<LocalIndexType, GlobalIndexType>*
partition,
const array<experimental::distributed::comm_index_type>& remote_targed_ids,
const array<experimental::distributed::comm_index_type>& remote_target_ids,
const collection::array<GlobalIndexType>& remote_global_idxs,
experimental::distributed::comm_index_type rank,
const array<GlobalIndexType>& global_ids,
Expand Down
12 changes: 6 additions & 6 deletions omp/distributed/index_map_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void get_local(
std::shared_ptr<const DefaultExecutor> exec,
const experimental::distributed::Partition<LocalIndexType, GlobalIndexType>*
partition,
const array<experimental::distributed::comm_index_type>& remote_targed_ids,
const array<experimental::distributed::comm_index_type>& remote_target_ids,
const collection::array<GlobalIndexType>& remote_global_idxs,
experimental::distributed::comm_index_type rank,
const array<GlobalIndexType>& global_ids,
Expand Down Expand Up @@ -162,13 +162,13 @@ void get_local(
// the global indexing. So find the part-id that corresponds
// to the global index first
auto set_id = std::distance(
remote_targed_ids.get_const_data(),
std::lower_bound(remote_targed_ids.get_const_data(),
remote_targed_ids.get_const_data() +
remote_targed_ids.get_size(),
remote_target_ids.get_const_data(),
std::lower_bound(remote_target_ids.get_const_data(),
remote_target_ids.get_const_data() +
remote_target_ids.get_size(),
part_id));

if (set_id == remote_targed_ids.get_size()) {
if (set_id == remote_target_ids.get_size()) {
return std::make_pair(invalid_index<LocalIndexType>(),
range_id);
}
Expand Down

0 comments on commit 989967d

Please sign in to comment.