Skip to content
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

RMM is making streams explicit in the device_buffer #50

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hornet/include/Core/SoA/impl/SoADataSort.i.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ cub_segmented_sort(CSoAPtr<EdgeTypes...> &soa, degree_t capacity, degree_t segme
cub::DeviceSegmentedRadixSort::SortKeys(
NULL, tempStorageBytes, in_edges, out_edges, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
rmm::device_buffer tempStorage(tempStorageBytes);
rmm::device_buffer tempStorage(tempStorageBytes, cuda_stream_view{});
cub::DeviceSegmentedRadixSort::SortKeys(
tempStorage.data(), tempStorageBytes, in_edges, out_edges, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
Expand Down Expand Up @@ -344,7 +344,7 @@ cub_segmented_sort(CSoAPtr<EdgeTypes...> &soa, degree_t capacity, degree_t segme
cub::DeviceSegmentedRadixSort::SortPairs(
NULL, tempStorageBytes, in_key, out_key, in_val, out_val, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
rmm::device_buffer tempStorage(tempStorageBytes);
rmm::device_buffer tempStorage(tempStorageBytes, cuda_stream_view{});
cub::DeviceSegmentedRadixSort::SortPairs(
tempStorage.data(), tempStorageBytes, in_key, out_key, in_val, out_val, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
Expand Down Expand Up @@ -382,7 +382,7 @@ cub_segmented_sort(CSoAPtr<EdgeTypes...> &soa, degree_t capacity, degree_t segme
cub::DeviceSegmentedRadixSort::SortPairs(
NULL, tempStorageBytes, in_key, out_key, in_val, out_val, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
rmm::device_buffer tempStorage(tempStorageBytes);
rmm::device_buffer tempStorage(tempStorageBytes, cuda_stream_view{});
cub::DeviceSegmentedRadixSort::SortPairs(
tempStorage.data(), tempStorageBytes, in_key, out_key, in_val, out_val, capacity,
offsets.size() - 1, offsets.data().get(), offsets.data().get() + 1);
Expand Down
2 changes: 1 addition & 1 deletion xlib/include/Device/Primitives/CubWrapper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected:
explicit CubWrapper(const int num_items) noexcept : _num_items(num_items) {}
~CubWrapper() noexcept { release(); }

mutable rmm::device_buffer _d_temp_storage { 0 };
mutable rmm::device_buffer _d_temp_storage { 0, cuda_stream_view{} };
size_t _temp_storage_bytes { 0 };
int _num_items { 0 };
};
Expand Down