-
Notifications
You must be signed in to change notification settings - Fork 88
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
Simplify the testing types #1594
Conversation
d648b9a
to
5d94d98
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.
Generally lgtm. The biggest issue for me is the documentation. It's dupliated a lot and should only be in one place (I think I would prefer the aliases in the gko::test
namespace).
869b2c4
to
795db27
Compare
795db27
to
0b8b67c
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.
LGTM.
Because it is only used for testing, it is fine for generating std::tuple<>
in cartesian product.
Just want to mention that I have also made some similar stuff for different purpose in first draft of file config https://github.com/ginkgo-project/ginkgo/blob/resource_manager/extension/resource_manager/include/resource_manager/base/type_pack.hpp with restricted and explicit outer_type and inner_type, so I do not need to distinguish after 2D caresian.
I think you can merge before half precision.
It might give some annoying rebase step for me, but it makes the half pr more clear.
Add template type functions to combine and merge type lists. As a result, the GINKGO_DPCPP_SINGLE_MODE only needs to be present once. Additionally, change the typen name ValueAndIndexType to ComplexAndPODTypes (because gko::size_type is not an IndexType).
Additionally, introduce `IntegerTypes`, which is IndexTypes combined with gko::size_type (used for the prefix sum tests).
Additionally, add tests for empty inputs.
Co-authored-by: Yu-Hsiang M. Tsai <yhmtsai@gmail.com>
3b2b4a2
to
a881a3d
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1594 +/- ##
===========================================
+ Coverage 89.96% 90.25% +0.28%
===========================================
Files 763 764 +1
Lines 62877 62907 +30
===========================================
+ Hits 56570 56779 +209
+ Misses 6307 6128 -179 ☔ View full report in Codecov by Sentry. |
Add template-type functions to combine and merge type lists. As a result, the GINKGO_DPCPP_SINGLE_MODE only needs to be present once.
Additionally, change the typen name ValueAndIndexType to ComplexAndPODTypes (because gko::size_type is not an IndexType).
TODO: