-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mst knn test build failure due to RMM device_buffer change #253
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ weight_t prims(CSRHost<vertex_t, edge_t, weight_t> &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<vertex_t, edge_t, weight_t>>::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()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this was a needed change anyway -- default stream is probably not what you wanted here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm that sounds right, but maybe such runtime failure wasn't getting triggered yet. |
||
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 {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is available in fedab76. Please merge the latest changes from
branch-21.08
into your PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!