diff --git a/common/cuda_hip/distributed/index_map_kernels.hpp.inc b/common/cuda_hip/distributed/index_map_kernels.hpp.inc index 06337301e4e..f886b140d9b 100644 --- a/common/cuda_hip/distributed/index_map_kernels.hpp.inc +++ b/common/cuda_hip/distributed/index_map_kernels.hpp.inc @@ -179,7 +179,7 @@ void get_local( std::shared_ptr exec, const experimental::distributed::Partition* partition, - const array& remote_targed_ids, + const array& remote_target_ids, const collection::array& remote_global_idxs, experimental::distributed::comm_index_type rank, const array& global_ids, @@ -214,8 +214,8 @@ void get_local( : invalid_index(); }; - 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(); diff --git a/dpcpp/distributed/index_map_kernels.dp.cpp b/dpcpp/distributed/index_map_kernels.dp.cpp index 265292fd0f4..f6ae9aeee54 100644 --- a/dpcpp/distributed/index_map_kernels.dp.cpp +++ b/dpcpp/distributed/index_map_kernels.dp.cpp @@ -33,7 +33,7 @@ void get_local( std::shared_ptr exec, const experimental::distributed::Partition* partition, - const array& remote_targed_ids, + const array& remote_target_ids, const collection::array& remote_global_idxs, experimental::distributed::comm_index_type rank, const array& global_ids, diff --git a/omp/distributed/index_map_kernels.cpp b/omp/distributed/index_map_kernels.cpp index 277c352f347..7b212a68580 100644 --- a/omp/distributed/index_map_kernels.cpp +++ b/omp/distributed/index_map_kernels.cpp @@ -127,7 +127,7 @@ void get_local( std::shared_ptr exec, const experimental::distributed::Partition* partition, - const array& remote_targed_ids, + const array& remote_target_ids, const collection::array& remote_global_idxs, experimental::distributed::comm_index_type rank, const array& global_ids, @@ -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(), range_id); }