Skip to content

Commit

Permalink
[CUDA] Fix queue creation with native handle
Browse files Browse the repository at this point in the history
The new priority parameter hadn't been reflected here so the ownership
property was being used as priority and default to `true` which caused
crashes.
  • Loading branch information
npmiller committed Oct 9, 2023
1 parent b38855e commit b4425bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/adapters/cuda/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueCreateWithNativeHandle(
hContext->getDevice(),
CuFlags,
Flags,
/*priority*/ 0,
/*backend_owns*/ pProperties->isNativeHandleOwned};
(*phQueue)->NumComputeStreams = 1;

Expand Down

0 comments on commit b4425bc

Please sign in to comment.