Skip to content

Conversation

@slawekptak
Copy link
Contributor

Introduce a kernel submission wrapper utility to E2E tests, and use it in the range rounding tests to increase the test coverage to the queue kernel submission shortcut function.

The main motivation is to test the handler-less kernel submission path, once it is introduced (for range based submissions).

Introduce a kernel submission wrapper utility to E2E tests,
and use it in the range rounding tests to increase the test
coverage to the queue kernel submission shortcut function.

The main motivation is to test the handler-less kernel submission
path, once it is introduced (for range based submissions).
Comment on lines +55 to +56
try_rounding_off(x, true);
try_rounding_off(x, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would make the try_rounding_off and command_submit_wrappers::parallel_for_wrapper template functions that accept the bool useShortcutFunction as a template argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a bit tricky, as the kernel lambda is defined as a local variable in try_rounding_off. With a templated version of that function, we get two different lambda types, but submitted with the same kernel name.

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.

2 participants