-
Notifications
You must be signed in to change notification settings - Fork 196
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
Port cub::DeviceReduce tests to catch2 #267
Conversation
/** | ||
* Vector1 overloads | ||
*/ | ||
#define CUB_VEC_1_TRAITS_OVERLOAD(T, BaseT) \ |
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.
I've migrated these from test_util.h
to avoid having to rely on test_util.h
. My ultimate goal is that, since test_util.h
contains a lot of other old boilerplate testing code that were needed by old tests, to drop test_util.h
altogether once the Catch2 migration is completed.
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.
A few minor comments below.
} | ||
|
||
// TEST_TYPES == 5 | ||
#elif TEST_TYPES == 5 |
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 approach is not very development-friendly. If you need different tests in different TUs, can we consider putting them into different source files?
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.
Agreed! Thanks for the suggestion. Moved the two test sections into their own translation unit:
device_reduce_iterators.cu
: 64-bit indices and fancy iteratorsdevice_reduce_fp_inf.cu
:Arg{Min,Max}
withinf
Would be great if I could have your eyes do another pass over this refactor quickly 🙏
Description
This PR partially addresses #85. It migrates tests for
DeviceReduce
, i.e., single-problem reduction algorithms, to Catch2.Checklist