-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add a test for Thrust scan with non-commutative op #2024
Conversation
a73398e
to
3ab3dee
Compare
Thanks for adding a test for a non-commutative operation! However, we rely on the operation being associative and subtraction is not associative. I think something like composition should work. I will try follow up with a suggestion shortly. |
Thanks for publicly shaming me :D You are totally right! I will revise this PR. |
3ab3dee
to
44c43d9
Compare
@elstehle I implemented composition of permutations as example for a non-commutative, but associative operation. Thank you for this great idea! |
44c43d9
to
1627e90
Compare
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.
That looks great! Thanks for the work! 👍
…in Thrust unit tests
🟩 CI finished in 5h 04m: Pass: 100%/250 | Total: 3d 02h | Avg: 17m 54s | Max: 1h 08m | Hits: 76%/250036
|
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
CUB | |
+/- | Thrust |
CUDA Experimental | |
pycuda |
Modifications in project or dependencies?
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
+/- | CUB |
+/- | Thrust |
CUDA Experimental | |
+/- | pycuda |
🏃 Runner counts (total jobs: 250)
# | Runner |
---|---|
178 | linux-amd64-cpu16 |
41 | linux-amd64-gpu-v100-latest-1 |
16 | linux-arm64-cpu16 |
15 | windows-amd64-cpu16 |
@elstehle please have another look! I had to fix something in the Thrust testing framework, since when it tried to print a |
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.
Looks good. Thanks for fixing printing in the assertion!
* Add a test for Thrust scan with non-commutative op * Fix printing mismatching sequences of non-addable types before C++17 in Thrust unit tests
* Add a test for Thrust scan with non-commutative op * Fix printing mismatching sequences of non-addable types before C++17 in Thrust unit tests
Thrust's scan algorithms do not require a commutative scan operation, so here is a test for that.