From b3469f1e733cfe9b16e61105c4a9b5702a6273fc Mon Sep 17 00:00:00 2001 From: Aaron Greig Date: Thu, 15 Feb 2024 10:01:38 +0000 Subject: [PATCH] Correct mapping of BUFFER_ALLOC_LOCATION_PROPERITES in CL adapter. This should have been mapped to CL_MEM_ALLOC_BUFFER_LOCATION_INTEL. --- source/adapters/opencl/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/adapters/opencl/memory.cpp b/source/adapters/opencl/memory.cpp index 86800845e8..2397e2b5f9 100644 --- a/source/adapters/opencl/memory.cpp +++ b/source/adapters/opencl/memory.cpp @@ -251,7 +251,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate( case UR_STRUCTURE_TYPE_BUFFER_ALLOC_LOCATION_PROPERTIES: { auto BufferLocationProperty = reinterpret_cast(Prop); - PropertiesIntel.push_back(CL_MEM_ALLOC_FLAGS_INTEL); + PropertiesIntel.push_back(CL_MEM_ALLOC_BUFFER_LOCATION_INTEL); PropertiesIntel.push_back(BufferLocationProperty->location); } break; default: