Skip to content
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

Merged
merged 5 commits into from
Jun 29, 2023

Conversation

kopylovanat
Copy link
Contributor

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.

@kopylovanat kopylovanat requested a review from a team as a code owner June 26, 2023 13:06
@@ -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,
Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Member

@keryell keryell left a 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,
Copy link
Member

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>
@bader bader merged commit 829985b into KhronosGroup:SYCL-2020 Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants