-
Notifications
You must be signed in to change notification settings - Fork 115
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 new_kernel_name
implementation in tests
#2128
base: main
Are you sure you want to change the base?
Simplify new_kernel_name
implementation in tests
#2128
Conversation
eae40da
to
fc30465
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.
Can we take this opportunity to consolidate this to a single instance of this implementation?
Is there a reason there are 2 nested copies of |
In any case now template <typename Policy>
using __policy_kernel_name = typename ::std::decay_t<Policy>::kernel_name; |
Yes, but in your "after" result, we still have 2 nested |
As example I have used the policy creation at Line 74 in f5bd154
auto new_policy = make_new_policy<new_kernel_name<Policy, 0>>(exec); at this point the type of So I think it's the question for test environment staff, not for
template <::std::size_t CallNumber = 0>
struct invoke_on_all_hetero_policies::operator()(Op op, Args&&... rest) |
…e implementation in tests
…lementation in tests
a4bdeee
to
9ea0453
Compare
In this PR we simplify
new_kernel_name
implementation in tests.The goal - to make generated new Kernel names more short and simple.
Example
Let's take a look to the code (for example):
new_policy
isnew_policy
is