Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

As shown in #15111, currently sycl::stream will leak resources if an exception is thrown during launch of its associated command. This was in turn causing sycl/test-e2e/Basic/diagnostics/non-uniform-wk-gp-test.cpp to leak resources simply because it was using the stream in its testing. However, since the kernel should never execute, the stream did not serve a fundamental function in the test and was only there for additional debugging information in the case where the test would fail. As such, it is arguably better to improve coverage than to disable cases because of some potentially helpful additional output in the failing case.

As shown in intel#15111, currently
sycl::stream will leak resources if an exception is thrown during launch
of its associated command. This was in turn causing
sycl/test-e2e/Basic/diagnostics/non-uniform-wk-gp-test.cpp to leak
resources simply because it was using the stream in its testing.
However, since the kernel should never execute, the stream did not
serve a fundamental function in the test and was only there for
additional debugging information in the case where the test would fail.
As such, it is arguably better to improve coverage than to disable cases
because of some potentially helpful additional output in the failing
case.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@aelovikov-intel aelovikov-intel merged commit a42ae7e into intel:sycl Aug 16, 2024
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