-
Notifications
You must be signed in to change notification settings - Fork 80
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 checks for reqd_work_group_size for different dimensions and fix test #728
Add checks for reqd_work_group_size for different dimensions and fix test #728
Conversation
@@ -650,29 +650,34 @@ void run_separate_lambda(const bool is_exception_expected, | |||
single_task_action, parallel_for_action, parallel_for_wg_action); | |||
} | |||
|
|||
template <typename KernelName, typename LambdaItemArg, typename LambdaGroupArg> | |||
template <typename KernelName, size_t Size = 1, int Dimensions = 1, |
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.
Does using default values make sense in this case? LambdaItemArg
has no default value.
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 have tried: they should be deduced from the argument types.
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.
Thanks.
@@ -650,29 +650,34 @@ void run_separate_lambda(const bool is_exception_expected, | |||
single_task_action, parallel_for_action, parallel_for_wg_action); | |||
} | |||
|
|||
template <typename KernelName, typename LambdaItemArg, typename LambdaGroupArg> | |||
template <typename KernelName, size_t Size = 1, int Dimensions = 1, |
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 have tried: they should be deduced from the argument types.
Co-authored-by: Ronan Keryell <ronan@keryell.fr>
Added checks for reqd_work_group_size according to updated test plan 2.2. Runtime exception if device doesn’t support required work group size.
Fix tests to use correct attribute.