From 801c68777160912b97467621dd5d05e830b6d459 Mon Sep 17 00:00:00 2001 From: Beatriz Navidad Vilches Date: Wed, 29 May 2024 11:23:22 +0200 Subject: [PATCH] Conform to OpenCL v3.0.15 specification release --- samples/extensions/khr/externalmemory/main.c | 8 ++++---- samples/extensions/khr/externalmemory/main.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/extensions/khr/externalmemory/main.c b/samples/extensions/khr/externalmemory/main.c index b7698fc6..f00b7036 100644 --- a/samples/extensions/khr/externalmemory/main.c +++ b/samples/extensions/khr/externalmemory/main.c @@ -551,9 +551,9 @@ int main(int argc, char* argv[]) #else (cl_mem_properties)fd_x, #endif - (cl_mem_properties)CL_DEVICE_HANDLE_LIST_KHR, + (cl_mem_properties)CL_MEM_DEVICE_HANDLE_LIST_KHR, (cl_mem_properties)(uintptr_t)cl_device, - CL_DEVICE_HANDLE_LIST_END_KHR, + CL_MEM_DEVICE_HANDLE_LIST_END_KHR, 0 }; cl_mem_properties ext_mem_props_y[] = { @@ -563,9 +563,9 @@ int main(int argc, char* argv[]) #else (cl_mem_properties)fd_y, #endif - (cl_mem_properties)CL_DEVICE_HANDLE_LIST_KHR, + (cl_mem_properties)CL_MEM_DEVICE_HANDLE_LIST_KHR, (cl_mem_properties)(uintptr_t)cl_device, - CL_DEVICE_HANDLE_LIST_END_KHR, + CL_MEM_DEVICE_HANDLE_LIST_END_KHR, 0 }; cl_mem cl_buf_x, cl_buf_y; diff --git a/samples/extensions/khr/externalmemory/main.cpp b/samples/extensions/khr/externalmemory/main.cpp index c82d8994..97b99a29 100644 --- a/samples/extensions/khr/externalmemory/main.cpp +++ b/samples/extensions/khr/externalmemory/main.cpp @@ -471,9 +471,9 @@ int main(int argc, char* argv[]) #else (cl_mem_properties)fd_x, #endif - (cl_mem_properties)CL_DEVICE_HANDLE_LIST_KHR, + (cl_mem_properties)CL_MEM_DEVICE_HANDLE_LIST_KHR, (cl_mem_properties)cl_device(), - CL_DEVICE_HANDLE_LIST_END_KHR, + CL_MEM_DEVICE_HANDLE_LIST_END_KHR, 0 }; std::vector ext_mem_props_y = { @@ -483,9 +483,9 @@ int main(int argc, char* argv[]) #else (cl_mem_properties)fd_y, #endif - (cl_mem_properties)CL_DEVICE_HANDLE_LIST_KHR, + (cl_mem_properties)CL_MEM_DEVICE_HANDLE_LIST_KHR, (cl_mem_properties)cl_device(), - CL_DEVICE_HANDLE_LIST_END_KHR, + CL_MEM_DEVICE_HANDLE_LIST_END_KHR, 0 };