Skip to content

Commit

Permalink
[OpenCL] Revert urMemBufferCreate extension function lookup error
Browse files Browse the repository at this point in the history
This commit reverts the urMemBufferCreate changes for returning function
lookup error in #1448
as the function had a fallback path which is no longer taken.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
  • Loading branch information
steffenlarsen committed Apr 9, 2024
1 parent a7c202b commit 5c30079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/adapters/opencl/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate(
clCreateBufferWithPropertiesINTEL_fn FuncPtr = nullptr;
cl_context CLContext = cl_adapter::cast<cl_context>(hContext);
// First we need to look up the function pointer
UR_RETURN_ON_FAILURE(
RetErr =
cl_ext::getExtFuncFromContext<clCreateBufferWithPropertiesINTEL_fn>(
CLContext,
cl_ext::ExtFuncPtrCache->clCreateBufferWithPropertiesINTELCache,
cl_ext::CreateBufferWithPropertiesName, &FuncPtr));
cl_ext::CreateBufferWithPropertiesName, &FuncPtr);
if (FuncPtr) {
std::vector<cl_mem_properties_intel> PropertiesIntel;
auto Prop = static_cast<ur_base_properties_t *>(pProperties->pNext);
Expand Down

0 comments on commit 5c30079

Please sign in to comment.