[CUB] Refactor DeviceAdjacentDifference::SubtractRight to always take an environment#9419
Open
miscco wants to merge 1 commit into
Conversation
Contributor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
18e8403 to
8cfab18
Compare
ba420ef to
3c91b42
Compare
8cfab18 to
c000627
Compare
Contributor
Jacobfaib
reviewed
Jun 12, 2026
|
|
||
| c2h::host_vector<type> h_in = in; | ||
| c2h::host_vector<type> reference(num_items); | ||
| std::adjacent_difference(h_in.begin(), h_in.end(), reference.begin(), ref_diff<type>{}); |
Comment on lines
+112
to
+114
| auto error = cub::DeviceAdjacentDifference::SubtractRight( | ||
| static_cast<void*>(nullptr), expected_allocation_size, in.begin(), num_items, cuda::std::minus<>{}); | ||
| REQUIRE(error == cudaSuccess); |
Comment on lines
+115
to
+116
| REQUIRE(cudaSuccess == cudaPeekAtLastError()); | ||
| REQUIRE(cudaSuccess == cudaDeviceSynchronize()); |
c000627 to
9ade375
Compare
3c91b42 to
9004022
Compare
9ade375 to
0dcfcac
Compare
This comment has been minimized.
This comment has been minimized.
0dcfcac to
657a73c
Compare
9004022 to
30ac019
Compare
This comment has been minimized.
This comment has been minimized.
30ac019 to
ebfba0b
Compare
657a73c to
187b964
Compare
This comment has been minimized.
This comment has been minimized.
187b964 to
72b06a4
Compare
ebfba0b to
32c5fb1
Compare
…ke an environment We want to be able to pass tunings to the APIs that take user provided memory.
32c5fb1 to
7e4f535
Compare
72b06a4 to
1150ed2
Compare
Contributor
🥳 CI Workflow Results🟩 Finished in 1h 27m: Pass: 100%/287 | Total: 5d 19h | Max: 1h 26m | Hits: 57%/393024See results here. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
closes
Checklist