From b19315fa2239bcd9ab62a1f1a0681d5b5ebf91bb Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 14 Sep 2020 21:56:24 -0500 Subject: [PATCH] Implement missing MemObject GetInfos --- src/wrap_cl.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 8e3fb72e..1f21237d 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -4870,6 +4870,19 @@ namespace pyopencl PYOPENCL_GET_TYPED_INFO(MemObject, data(), param_name, size_t); #endif +#if PYOPENCL_CL_VERSION >= 0x2000 + case CL_MEM_USES_SVM_POINTER: + PYOPENCL_GET_TYPED_INFO(MemObject, data(), param_name, + cl_bool); +#endif +#if PYOPENCL_CL_VERSION >= 0x3000 + case CL_MEM_PROPERTIES: + { + std::vector<cl_mem_properties> result; + PYOPENCL_GET_VEC_INFO(MemObject, data(), param_name, result); + PYOPENCL_RETURN_VECTOR(cl_mem_properties, result); + } +#endif default: throw error("MemoryObjectHolder.get_info", CL_INVALID_VALUE); -- GitLab