diff --git a/cpp/test/mst.cu b/cpp/test/mst.cu index 215c6f6548..d7aa76500b 100644 --- a/cpp/test/mst.cu +++ b/cpp/test/mst.cu @@ -58,7 +58,7 @@ weight_t prims(CSRHost &csr_h) { auto n_vertices = csr_h.offsets.size() - 1; bool active_vertex[n_vertices]; - // bool mst_set[csr_h.n_edges]; + // bool mst_set[csr_h.n_edges]; weight_t curr_edge[n_vertices]; for (auto i = 0; i < n_vertices; i++) { @@ -198,15 +198,15 @@ class MSTTest MSTTestInput>::GetParam(); iterations = mst_input.iterations; - csr_d.offsets = - rmm::device_buffer(mst_input.csr_h.offsets.data(), - mst_input.csr_h.offsets.size() * sizeof(edge_t)); - csr_d.indices = - rmm::device_buffer(mst_input.csr_h.indices.data(), - mst_input.csr_h.indices.size() * sizeof(vertex_t)); - csr_d.weights = - rmm::device_buffer(mst_input.csr_h.weights.data(), - mst_input.csr_h.weights.size() * sizeof(weight_t)); + csr_d.offsets = rmm::device_buffer( + mst_input.csr_h.offsets.data(), + mst_input.csr_h.offsets.size() * sizeof(edge_t), handle.get_stream()); + csr_d.indices = rmm::device_buffer( + mst_input.csr_h.indices.data(), + mst_input.csr_h.indices.size() * sizeof(vertex_t), handle.get_stream()); + csr_d.weights = rmm::device_buffer( + mst_input.csr_h.weights.data(), + mst_input.csr_h.weights.size() * sizeof(weight_t), handle.get_stream()); } void TearDown() override {} diff --git a/cpp/test/spatial/knn.cu b/cpp/test/spatial/knn.cu index cfd4ecc9d1..2b1ef89f7a 100644 --- a/cpp/test/spatial/knn.cu +++ b/cpp/test/spatial/knn.cu @@ -107,11 +107,13 @@ class KNNTest : public ::testing::TestWithParam { } } rmm::device_buffer input_d = rmm::device_buffer( - row_major_input.data(), row_major_input.size() * sizeof(float)); + row_major_input.data(), row_major_input.size() * sizeof(float), + handle_.get_stream()); float *input_ptr = static_cast(input_d.data()); rmm::device_buffer labels_d = rmm::device_buffer( - params_.labels.data(), params_.labels.size() * sizeof(int)); + params_.labels.data(), params_.labels.size() * sizeof(int), + handle_.get_stream()); int *labels_ptr = static_cast(labels_d.data()); raft::allocate(input_, rows_ * cols_, true);