Skip to content

Commit

Permalink
Fix template argument for raft::update_host.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jan 16, 2025
1 parent bc0827f commit a753a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/test/distance/masked_nn.cu
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ template <typename K, typename V, typename L>
typedef typename raft::KeyValuePair<K, V> KVP;
std::shared_ptr<KVP[]> exp_h(new KVP[size]);
std::shared_ptr<KVP[]> act_h(new KVP[size]);
raft::update_host<KVP[]>(exp_h.get(), expected, size, stream);
raft::update_host<KVP[]>(act_h.get(), actual, size, stream);
raft::update_host<KVP>(exp_h.get(), expected, size, stream);
raft::update_host<KVP>(act_h.get(), actual, size, stream);
RAFT_CUDA_TRY(cudaStreamSynchronize(stream));
for (size_t i(0); i < size; ++i) {
auto exp = exp_h.get()[i];
Expand Down

0 comments on commit a753a63

Please sign in to comment.