-
Notifications
You must be signed in to change notification settings - Fork 117
Simplify new_kernel_name
implementation in tests
#2128
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
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) |
9ea0453
to
d3cff9c
Compare
d19308f
to
592fc8c
Compare
eae2814
to
db08779
Compare
…e implementation in tests
…lementation in tests
db08779
to
b2f1493
Compare
…me_impl # Conflicts: # test/support/test_dynamic_load_utils.h
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
…ienko/2_simplify_tests_new_kernel_name_impl
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