-
Notifications
You must be signed in to change notification settings - Fork 990
Compatibility updates for CCCL 3.2 #20725
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7935b9c
Use cuda::std::distance in segmented_top_k.cu
bdice 65dc6f9
Remove const qualifier from resource_ref
bdice 7237aae
Vendor AliasTemporaries
bdice 08a35aa
Initialize ptx_version.
bdice ea747e5
Add nv_exec_check_disable to rmm_host_allocator
bdice 0deefde
Merge remote-tracking branch 'upstream/main' into cccl-3.2-compat
bdice f2abc45
East const
bdice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,6 +14,64 @@ | |||||
|
|
||||||
| namespace cudf::io::fst::detail { | ||||||
|
|
||||||
| /** | ||||||
| * @brief Alias temporaries to externally-allocated device storage (or simply return the amount of | ||||||
| * storage needed). | ||||||
| * | ||||||
| * This is a replacement for the removed `cub::AliasTemporaries` function. | ||||||
| * | ||||||
| * @param[in] d_temp_storage | ||||||
| * Device-accessible allocation of temporary storage. | ||||||
| * When nullptr, the required allocation size is written to @p temp_storage_bytes and no work is | ||||||
| * done. | ||||||
| * | ||||||
| * @param[in,out] temp_storage_bytes | ||||||
| * Size in bytes of @p d_temp_storage allocation | ||||||
| * | ||||||
| * @param[in,out] allocations | ||||||
| * Pointers to device allocations needed | ||||||
| * | ||||||
| * @param[in] allocation_sizes | ||||||
| * Sizes in bytes of device allocations needed | ||||||
| */ | ||||||
| template <int ALLOCATIONS> | ||||||
| cudaError_t AliasTemporaries(void* d_temp_storage, | ||||||
PointKernel marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| size_t& temp_storage_bytes, | ||||||
| void* (&allocations)[ALLOCATIONS], | ||||||
| const size_t (&allocation_sizes)[ALLOCATIONS]) | ||||||
| { | ||||||
| constexpr size_t ALIGN_BYTES = 256; | ||||||
| constexpr size_t ALIGN_MASK = ~(ALIGN_BYTES - 1); | ||||||
|
|
||||||
| // Compute exclusive prefix sum over allocation requests | ||||||
| size_t allocation_offsets[ALLOCATIONS]; | ||||||
| size_t bytes_needed = 0; | ||||||
| for (int i = 0; i < ALLOCATIONS; ++i) { | ||||||
| const size_t allocation_bytes = (allocation_sizes[i] + ALIGN_BYTES - 1) & ALIGN_MASK; | ||||||
|
||||||
| const size_t allocation_bytes = (allocation_sizes[i] + ALIGN_BYTES - 1) & ALIGN_MASK; | |
| size_t const allocation_bytes = (allocation_sizes[i] + ALIGN_BYTES - 1) & ALIGN_MASK; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.