Skip to content

Conversation

@igchor
Copy link
Contributor

@igchor igchor commented Apr 1, 2025

getSignalEvent in ur_command_list_manager returned nullptr when queue was not set. This was the case when initializing the command list manager in queue ctor called from urQueueCreateWithNativeHandle.

Fix this by passing queue to the command list manager and removing the default nullptr value from the ctor (to avoid this issue in future).

Also, even if queue is nullptr, return the event instead of nullptr from getSignalEvent. This event is mostly functional, it just cannot be used for profiling.

getSignalEvent in ur_command_list_manager returned nullptr
when queue was not set. This was the case when initializing
the command list manager in queue ctor called from
urQueueCreateWithNativeHandle.

Fix this by passing queue to the command list manager and
removing the default nullptr value from the ctor (to avoid
this issue in future).

Also, event if queue is nullptr, return the event instead
of nullptr from getSignalEvent. This event is mostly functional,
it just cannot be used for profiling.
@igchor igchor requested review from a team as code owners April 1, 2025 18:49
@igchor igchor requested a review from Bensuo April 1, 2025 18:49
@igchor igchor temporarily deployed to WindowsCILock April 1, 2025 18:49 — with GitHub Actions Inactive
@igchor
Copy link
Contributor Author

igchor commented Apr 1, 2025

@Xewar313 please take a look

@igchor igchor temporarily deployed to WindowsCILock April 1, 2025 19:10 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock April 1, 2025 19:10 — with GitHub Actions Inactive
@pbalcer
Copy link
Contributor

pbalcer commented Apr 3, 2025

@intel/llvm-gatekeepers please merge

@martygrant martygrant merged commit 2a09e49 into intel:sycl Apr 3, 2025
41 of 43 checks passed
@igchor igchor deleted the fix_native_queue branch April 3, 2025 16:27
KornevNikita pushed a commit that referenced this pull request May 27, 2025
getSignalEvent in ur_command_list_manager returned nullptr when queue
was not set. This was the case when initializing the command list
manager in queue ctor called from urQueueCreateWithNativeHandle.

Fix this by passing queue to the command list manager and removing the
default nullptr value from the ctor (to avoid this issue in future).

Also, even if queue is nullptr, return the event instead of nullptr from
getSignalEvent. This event is mostly functional, it just cannot be used
for profiling.
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.

5 participants