-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL][Graph] Fix memset queue shortcut when queue is recorded #12508
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
[SYCL][Graph] Fix memset queue shortcut when queue is recorded #12508
Conversation
Memset queue shortcut `queue::memset()` manages the memset direclty from the host (without going through the normal path, i.e. the handler). We added a specific case when the queue is recorded to use the normal path instead of the optimized path.
#11758 is going in in a moment. I think we can benefit by waiting and rebasing once that happens. Also, + @sergey-semenov who's the expert in the area. |
// RUN: %{build} -o %t.out | ||
// RUN: %{run} %t.out | ||
// Extra run to check for leaks in Level Zero using ZE_DEBUG | ||
// RUN: %if ext_oneapi_level_zero %{env ZE_DEBUG=4 %{run} %t.out 2>&1 | FileCheck %s --implicit-check-not=LEAK %} |
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.
Hasn't that been changed to UR_L0_LEAKS_DEBUG
?
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.
You're right. This test has been updated.
sycl/source/detail/queue_impl.cpp
Outdated
"The memset feature is not yet available " | ||
"for use with the SYCL Graph extension."); | ||
return submit( | ||
[&](handler &CGH) { |
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.
Not sure if it really makes a difference: but shouldn't we capture (parameters other than DepEvents
) by value here instead?
@intel/llvm-gatekeepers could you please merge this PR? Thanks. |
Memset queue shortcut
queue::memset()
manages the memset direclty from the host (without going through the normal path, i.e. the handler).We added a specific case when the queue is recorded to use the normal path instead of the optimized path.