From b4425bc19fb9eaa445247c2179563a1f7e9356cc Mon Sep 17 00:00:00 2001 From: Nicolas Miller Date: Mon, 9 Oct 2023 19:25:50 +0100 Subject: [PATCH] [CUDA] Fix queue creation with native handle 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. --- source/adapters/cuda/queue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/adapters/cuda/queue.cpp b/source/adapters/cuda/queue.cpp index 5ac78e4e23..120d665524 100644 --- a/source/adapters/cuda/queue.cpp +++ b/source/adapters/cuda/queue.cpp @@ -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;