-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][L0] code restructuring for keeping command-list related info together #4248
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
Conversation
/summary:run |
…ogether Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
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.
Just a minor nitpick. Otherwise, it looks good to me. Thanks
@smaslov-intel, this patch break the build with clang (aka "self-build"). Please, fix ASAP. /home/runner/work/llvm/llvm/src/sycl/plugins/level_zero/pi_level_zero.hpp:346:15: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage] |
Fix is in #4286 |
…List When adding a command list from the cache to the map, we were not returning the newly-inserted element via `CommandList` reference. Thus, the _pi_context::getAvailableCommandList function was returning `PI_SUCCESS`, but `CommandList` was left uninitialized, leading to a segfault when the command list is used later (in my case, in `enqueueMemFillHelper`). Introduced in PR intel#4248.
…List (#4359) When adding a command list from the cache to the map, we were not returning the newly-inserted element via `CommandList` reference. Thus, the _pi_context::getAvailableCommandList function was returning `PI_SUCCESS`, but `CommandList` was left uninitialized, leading to a segfault when the command list is used later (in my case, in `enqueueMemFillHelper`). Introduced in PR #4248.
The changes are mostly NFC, except that I replaced ZeOpenCommandListSize with CommandList->EventList.size(), which should be identical in the new design.
Signed-off-by: Sergey V Maslov [email protected]