Skip to content

Commit 5c30079

Browse files
committed
[OpenCL] Revert urMemBufferCreate extension function lookup error
This commit reverts the urMemBufferCreate changes for returning function lookup error in oneapi-src/unified-runtime#1448 as the function had a fallback path which is no longer taken. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent a7c202b commit 5c30079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adapters/opencl/memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate(
232232
clCreateBufferWithPropertiesINTEL_fn FuncPtr = nullptr;
233233
cl_context CLContext = cl_adapter::cast<cl_context>(hContext);
234234
// First we need to look up the function pointer
235-
UR_RETURN_ON_FAILURE(
235+
RetErr =
236236
cl_ext::getExtFuncFromContext<clCreateBufferWithPropertiesINTEL_fn>(
237237
CLContext,
238238
cl_ext::ExtFuncPtrCache->clCreateBufferWithPropertiesINTELCache,
239-
cl_ext::CreateBufferWithPropertiesName, &FuncPtr));
239+
cl_ext::CreateBufferWithPropertiesName, &FuncPtr);
240240
if (FuncPtr) {
241241
std::vector<cl_mem_properties_intel> PropertiesIntel;
242242
auto Prop = static_cast<ur_base_properties_t *>(pProperties->pNext);

0 commit comments

Comments
 (0)