From 5c30079919c36e1b206a73fe9cd28b3f49193a08 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Mon, 8 Apr 2024 23:20:19 -0700 Subject: [PATCH] [OpenCL] Revert urMemBufferCreate extension function lookup error This commit reverts the urMemBufferCreate changes for returning function lookup error in https://github.com/oneapi-src/unified-runtime/pull/1448 as the function had a fallback path which is no longer taken. Signed-off-by: Larsen, Steffen --- source/adapters/opencl/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/adapters/opencl/memory.cpp b/source/adapters/opencl/memory.cpp index 5de850f1e2..2397e2b5f9 100644 --- a/source/adapters/opencl/memory.cpp +++ b/source/adapters/opencl/memory.cpp @@ -232,11 +232,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate( clCreateBufferWithPropertiesINTEL_fn FuncPtr = nullptr; cl_context CLContext = cl_adapter::cast(hContext); // First we need to look up the function pointer - UR_RETURN_ON_FAILURE( + RetErr = cl_ext::getExtFuncFromContext( CLContext, cl_ext::ExtFuncPtrCache->clCreateBufferWithPropertiesINTELCache, - cl_ext::CreateBufferWithPropertiesName, &FuncPtr)); + cl_ext::CreateBufferWithPropertiesName, &FuncPtr); if (FuncPtr) { std::vector PropertiesIntel; auto Prop = static_cast(pProperties->pNext);