Skip to content

Commit

Permalink
Merge pull request #1496 from steffenlarsen/steffen/revert_memory_loo…
Browse files Browse the repository at this point in the history
…kup_error

[OpenCL] Revert urMemBufferCreate extension function lookup error
  • Loading branch information
kbenzie authored Apr 9, 2024
2 parents a7c202b + 5c30079 commit 85b7559
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 85b7559

Please sign in to comment.